pub enum Gate {
Parse(Path),
Check(Path),
}Expand description
The DOOR a declaration put in front of its own values — scalar(parse = "…") or
scalar(check = "…"), and never both.
Both name a free function returning Result<Self, E> with E: Display. What differs is the
SHAPE the function is handed, and the difference is the whole reason there are two words: a text
door reads spellings and folds them, a check door takes the carrier’s own value and says whether
it is in range.
Variants§
Parse(Path)
parse = "…" — fn(&str) -> Result<Self, E>. Text in, WIDE: the function owns the grammar,
the folds and the refusal.
Check(Path)
check = "…" — fn(Inner) -> Result<Self, E>. The carrier’s own value, ANCHORED: an
interval, a normalisation, a domain the width admits and the type does not.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Gate
impl !Sync for Gate
impl Freeze for Gate
impl RefUnwindSafe for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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