pub struct FormatDescriptor {
pub id: &'static str,
pub kind: FormatKind,
}Expand description
Stable identifier for a probeable format.
Fields§
§id: &'static strStable machine-readable identifier.
kind: FormatKindBroad parser category.
Implementations§
Source§impl FormatDescriptor
impl FormatDescriptor
Sourcepub const fn new(id: &'static str, kind: FormatKind) -> Self
pub const fn new(id: &'static str, kind: FormatKind) -> Self
Construct a format descriptor.
Trait Implementations§
Source§impl Clone for FormatDescriptor
impl Clone for FormatDescriptor
Source§fn clone(&self) -> FormatDescriptor
fn clone(&self) -> FormatDescriptor
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 FormatDescriptor
impl Debug for FormatDescriptor
Source§impl Hash for FormatDescriptor
impl Hash for FormatDescriptor
Source§impl PartialEq for FormatDescriptor
impl PartialEq for FormatDescriptor
impl Copy for FormatDescriptor
impl Eq for FormatDescriptor
impl StructuralPartialEq for FormatDescriptor
Auto Trait Implementations§
impl Freeze for FormatDescriptor
impl RefUnwindSafe for FormatDescriptor
impl Send for FormatDescriptor
impl Sync for FormatDescriptor
impl Unpin for FormatDescriptor
impl UnsafeUnpin for FormatDescriptor
impl UnwindSafe for FormatDescriptor
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.