pub struct Var(/* private fields */);
Expand description
Implementations§
Source§impl Var
impl Var
Sourcepub fn from_u32(num: u32) -> Self
pub fn from_u32(num: u32) -> Self
Create a new variable from a u32.
You can also use special syntax ?#3
, ?#42
to denote a numeric variable.
These avoid some symbol interning, and can also be created manually from
using this function or the From
impl.
assert_eq!(Var::from(12), "?#12".parse().unwrap());
assert_eq!(Var::from_u32(12), "?#12".parse().unwrap());
Trait Implementations§
Source§impl Ord for Var
impl Ord for Var
Source§impl PartialOrd for Var
impl PartialOrd for Var
impl Copy for Var
impl Eq for Var
impl StructuralPartialEq for Var
Auto Trait Implementations§
impl Freeze for Var
impl RefUnwindSafe for Var
impl Send for Var
impl Sync for Var
impl Unpin for Var
impl UnwindSafe for Var
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.