pub struct BignumModel;Trait Implementations§
Source§impl LitModel for BignumModel
impl LitModel for BignumModel
Source§fn sorts(&self) -> &[LitSortDesc<BignumLit>]
fn sorts(&self) -> &[LitSortDesc<BignumLit>]
Available literal sorts.
Source§fn is_truthy(val: &BignumLit) -> bool
fn is_truthy(val: &BignumLit) -> 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 BignumModel
impl RefUnwindSafe for BignumModel
impl Send for BignumModel
impl Sync for BignumModel
impl Unpin for BignumModel
impl UnsafeUnpin for BignumModel
impl UnwindSafe for BignumModel
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