pub struct Rot13 {}Expand description
ROT13 Cipher
The struct is generated through the new() function.
Implementations§
Source§impl Rot13
impl Rot13
Sourcepub fn new() -> Result<Self, String>
pub fn new() -> Result<Self, String>
Initializes a rot13 cipher with a supplied rotation.
§Examples
use kryptos::ciphers::rot13::Rot13;
let c = Rot13::new().unwrap();Auto Trait Implementations§
impl Freeze for Rot13
impl RefUnwindSafe for Rot13
impl Send for Rot13
impl Sync for Rot13
impl Unpin for Rot13
impl UnsafeUnpin for Rot13
impl UnwindSafe for Rot13
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