pub struct StringLiteral;Expand description
Mode marker type indicating the encrypted data should be treated as a UTF-8 string literal.
When used as the M type parameter of Encrypted<A, M, N>, dereferencing
returns &str instead of &[u8; N].
§Safety
The original plaintext must be valid UTF-8. The encryption algorithm must preserve the byte values such that decryption produces valid UTF-8.
Auto Trait Implementations§
impl Freeze for StringLiteral
impl RefUnwindSafe for StringLiteral
impl Send for StringLiteral
impl Sync for StringLiteral
impl Unpin for StringLiteral
impl UnsafeUnpin for StringLiteral
impl UnwindSafe for StringLiteral
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more