pub struct FileTextOrBinary(/* private fields */);
Expand description
Represents whether a file is a text file or not. We wrap TextOrBinary to specify persist! and conf!.
Implementations§
Source§impl FileTextOrBinary
impl FileTextOrBinary
Sourcepub fn as_inner(&self) -> TextOrBinary
pub fn as_inner(&self) -> TextOrBinary
Returns the inner TextOrBinary
Trait Implementations§
Source§impl AsRef<TextOrBinary> for FileTextOrBinary
impl AsRef<TextOrBinary> for FileTextOrBinary
Source§fn as_ref(&self) -> &TextOrBinary
fn as_ref(&self) -> &TextOrBinary
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for FileTextOrBinary
impl Clone for FileTextOrBinary
Source§fn clone(&self) -> FileTextOrBinary
fn clone(&self) -> FileTextOrBinary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileTextOrBinary
impl Debug for FileTextOrBinary
Source§impl Default for FileTextOrBinary
impl Default for FileTextOrBinary
Source§fn default() -> FileTextOrBinary
fn default() -> FileTextOrBinary
Returns the “default value” for a type. Read more
Source§impl Deref for FileTextOrBinary
impl Deref for FileTextOrBinary
Source§impl<'de> Deserialize<'de> for FileTextOrBinary
impl<'de> Deserialize<'de> for FileTextOrBinary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FileTextOrBinary
impl Display for FileTextOrBinary
Source§impl From<TextOrBinary> for FileTextOrBinary
impl From<TextOrBinary> for FileTextOrBinary
Source§fn from(value: TextOrBinary) -> Self
fn from(value: TextOrBinary) -> Self
Converts to this type from the input type.
Source§impl FromConfigKey<FileTextOrBinary> for FileTextOrBinary
impl FromConfigKey<FileTextOrBinary> for FileTextOrBinary
Source§fn from_conf(conf: &XvcConfig) -> FileTextOrBinary
fn from_conf(conf: &XvcConfig) -> FileTextOrBinary
Create a value of type
T
from configuration.
Supposed to panic! if there is no key, or the value cannot be parsed.Source§fn try_from_conf(conf: &XvcConfig) -> Result<FileTextOrBinary>
fn try_from_conf(conf: &XvcConfig) -> Result<FileTextOrBinary>
Try to create a type
T
from the configuration.
Returns error if there is no key, or the value cannot be parsed.Source§impl FromStr for FileTextOrBinary
impl FromStr for FileTextOrBinary
Source§impl Hash for FileTextOrBinary
impl Hash for FileTextOrBinary
Source§impl Ord for FileTextOrBinary
impl Ord for FileTextOrBinary
Source§fn cmp(&self, other: &FileTextOrBinary) -> Ordering
fn cmp(&self, other: &FileTextOrBinary) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FileTextOrBinary
impl PartialEq for FileTextOrBinary
Source§impl PartialOrd for FileTextOrBinary
impl PartialOrd for FileTextOrBinary
Source§impl Serialize for FileTextOrBinary
impl Serialize for FileTextOrBinary
Source§impl Storable for FileTextOrBinary
impl Storable for FileTextOrBinary
Source§fn type_description() -> String
fn type_description() -> String
A string representation for the type. Read more
impl Copy for FileTextOrBinary
impl Eq for FileTextOrBinary
impl StructuralPartialEq for FileTextOrBinary
Auto Trait Implementations§
impl Freeze for FileTextOrBinary
impl RefUnwindSafe for FileTextOrBinary
impl Send for FileTextOrBinary
impl Sync for FileTextOrBinary
impl Unpin for FileTextOrBinary
impl UnwindSafe for FileTextOrBinary
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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