pub enum FileType {
AsciiText(TextFormat),
EbcdicText(TextFormat),
Binary,
LocalFormat {
bits_per_byte: u8,
},
}
Variants§
Implementations§
Trait Implementations§
Source§impl Argument for FileType
impl Argument for FileType
fn read(read: &mut dyn BufRead) -> Result<Self, Error>
fn write(&self, write: &mut dyn Write) -> Result<(), Error>
Source§fn read_with_space(read: &mut dyn BufRead) -> Result<Self, Error>
fn read_with_space(read: &mut dyn BufRead) -> Result<Self, Error>
Read an argument with a leading space character. Read more
fn parse_text(text: &str) -> Self
fn bytes(&self) -> Vec<u8> ⓘ
fn to_string(&self) -> String
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more