pub struct AllModel;Trait Implementations§
Source§impl LitModel for AllModel
impl LitModel for AllModel
Source§fn sorts(&self) -> &[LitSortDesc<AllLit>]
fn sorts(&self) -> &[LitSortDesc<AllLit>]
Available literal sorts.
Source§fn is_truthy(val: &AllLit) -> bool
fn is_truthy(val: &AllLit) -> bool
Is this literal value truthy? Used for comprehension filter guards.
Source§fn parse_as(&self, sort_name: &str, token: &str) -> Option<Self::Value>
fn parse_as(&self, sort_name: &str, token: &str) -> Option<Self::Value>
Try to parse a token as a literal of a specific sort.
Source§fn parse_any(&self, token: &str) -> Option<(&'static str, Self::Value)>
fn parse_any(&self, token: &str) -> Option<(&'static str, Self::Value)>
Try to parse a token as a literal of any sort.
Returns
(sort_name, value) on success.Source§fn find_op(&self, name: &str) -> Option<&LitOpDesc<Self::Value>>
fn find_op(&self, name: &str) -> Option<&LitOpDesc<Self::Value>>
Look up a primitive op by name.
Source§fn is_lit_sort(&self, name: &str) -> bool
fn is_lit_sort(&self, name: &str) -> bool
Is this identifier a literal sort name?
Auto Trait Implementations§
impl Freeze for AllModel
impl RefUnwindSafe for AllModel
impl Send for AllModel
impl Sync for AllModel
impl Unpin for AllModel
impl UnsafeUnpin for AllModel
impl UnwindSafe for AllModel
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