pub enum MagicValueType {
String,
Host16,
Host32,
Big16,
Big32,
Little16,
Little32,
Byte,
}Expand description
Value type used by a MIME magic matcher.
Variants§
String
A byte string.
Host16
A native-endian 16-bit integer.
Host32
A native-endian 32-bit integer.
Big16
A big-endian 16-bit integer.
Big32
A big-endian 32-bit integer.
Little16
A little-endian 16-bit integer.
Little32
A little-endian 32-bit integer.
Byte
A single byte.
Implementations§
Source§impl MagicValueType
impl MagicValueType
Trait Implementations§
Source§impl Clone for MagicValueType
impl Clone for MagicValueType
Source§fn clone(&self) -> MagicValueType
fn clone(&self) -> MagicValueType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MagicValueType
impl Debug for MagicValueType
Source§impl Hash for MagicValueType
impl Hash for MagicValueType
Source§impl PartialEq for MagicValueType
impl PartialEq for MagicValueType
Source§fn eq(&self, other: &MagicValueType) -> bool
fn eq(&self, other: &MagicValueType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MagicValueType
impl Eq for MagicValueType
impl StructuralPartialEq for MagicValueType
Auto Trait Implementations§
impl Freeze for MagicValueType
impl RefUnwindSafe for MagicValueType
impl Send for MagicValueType
impl Sync for MagicValueType
impl Unpin for MagicValueType
impl UnsafeUnpin for MagicValueType
impl UnwindSafe for MagicValueType
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> 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<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
impl<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
Source§fn into_config_default(self) -> T
fn into_config_default(self) -> T
Converts this fallback value into
T.Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.