pub struct LitSortDesc<V> {
pub name: &'static str,
pub parse: fn(&str) -> Option<V>,
}Expand description
Descriptor for a literal sort (e.g. “Int” backed by IBig).
Fields§
§name: &'static strName in surface syntax: “Int”, “Bool”, “Rational”, etc.
parse: fn(&str) -> Option<V>Parse a surface-syntax token into a value of this sort.
Trait Implementations§
Source§impl<V> Clone for LitSortDesc<V>
impl<V> Clone for LitSortDesc<V>
impl<V> Copy for LitSortDesc<V>
Auto Trait Implementations§
impl<V> Freeze for LitSortDesc<V>
impl<V> RefUnwindSafe for LitSortDesc<V>
impl<V> Send for LitSortDesc<V>
impl<V> Sync for LitSortDesc<V>
impl<V> Unpin for LitSortDesc<V>
impl<V> UnsafeUnpin for LitSortDesc<V>
impl<V> UnwindSafe for LitSortDesc<V>
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