pub struct ReadPreset {
pub name: &'static str,
pub reader: &'static str,
pub choices: &'static [(&'static str, &'static str)],
pub note: &'static str,
}Expand description
A combination of scope choices a reader’s crate offers by name: hand-picked and labelled so, with what is known of why. Nothing applies it: a caller names the preset it wants, and the choices are then the caller’s, stated.
Fields§
§name: &'static strThe preset’s name, stable within its reader.
reader: &'static strThe reader scope (ReadScopeSpec::name) whose options it states.
choices: &'static [(&'static str, &'static str)]Option and value, each an option the scope declares and a value it accepts.
note: &'static strWhat the choices are and the evidence for them, saying where they are observed and where only picked.
Implementations§
Source§impl ReadPreset
impl ReadPreset
Trait Implementations§
Source§impl Clone for ReadPreset
impl Clone for ReadPreset
impl Copy for ReadPreset
Source§impl Debug for ReadPreset
impl Debug for ReadPreset
impl Eq for ReadPreset
Source§impl PartialEq for ReadPreset
impl PartialEq for ReadPreset
Source§impl Serialize for ReadPreset
impl Serialize for ReadPreset
impl StructuralPartialEq for ReadPreset
Auto Trait Implementations§
impl Forget for ReadPreset
impl Freeze for ReadPreset
impl RefUnwindSafe for ReadPreset
impl Send for ReadPreset
impl Sync for ReadPreset
impl Unpin for ReadPreset
impl UnsafeUnpin for ReadPreset
impl UnwindSafe for ReadPreset
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.