pub struct TextConverter { /* private fields */ }
Expand description
Transforms between UTF8 and ProDOS text encodings. ProDOS uses positive ASCII with CR line separators.
Trait Implementations§
Source§impl TextConversion for TextConverter
impl TextConversion for TextConverter
fn new(line_terminator: Vec<u8>) -> Self
Source§fn from_utf8(&self, txt: &str) -> Option<Vec<u8>>
fn from_utf8(&self, txt: &str) -> Option<Vec<u8>>
Typical implementations will return Some(Vec) only if
the string slice is pure ASCII.
Auto Trait Implementations§
impl Freeze for TextConverter
impl RefUnwindSafe for TextConverter
impl Send for TextConverter
impl Sync for TextConverter
impl Unpin for TextConverter
impl UnwindSafe for TextConverter
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