pub struct Password(/* private fields */);
Expand description
A password used for password protected, encrypted files.
Use Password::empty()
to create an empty password when no
password is used.
You can convert strings easily into password using the Into/From traits:
use sevenz_rust2::Password;
let password: Password = "a password string".into();
Implementations§
Trait Implementations§
impl StructuralPartialEq for Password
Auto Trait Implementations§
impl Freeze for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
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