pub struct Ptr(pub Val);Tuple Fields§
§0: ValImplementations§
source§impl Ptr
impl Ptr
pub const fn new(tag: Tag, lab: Lab, loc: Loc) -> Self
pub const fn big(tag: Tag, val: Val) -> Self
pub const fn tag(&self) -> Tag
pub const fn lab(&self) -> Lab
pub const fn loc(&self) -> Loc
pub const fn val(&self) -> Val
pub fn is_nil(&self) -> bool
pub fn is_var(&self) -> bool
pub fn is_red(&self) -> bool
pub fn is_era(&self) -> bool
pub fn is_ctr(&self) -> bool
pub fn is_dup(&self) -> bool
pub fn is_ref(&self) -> bool
pub fn is_pri(&self) -> bool
pub fn is_num(&self) -> bool
pub fn is_op1(&self) -> bool
pub fn is_op2(&self) -> bool
pub fn is_skp(&self) -> bool
pub fn is_mat(&self) -> bool
pub fn is_nod(&self) -> bool
pub fn has_loc(&self) -> bool
pub fn redirect(&self) -> Ptr
pub fn unredirect(&self) -> Ptr
pub fn can_skip(a: Ptr, b: Ptr) -> bool
Trait Implementations§
source§impl PartialOrd for Ptr
impl PartialOrd for Ptr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Ptr
impl Eq for Ptr
impl StructuralEq for Ptr
impl StructuralPartialEq for Ptr
Auto Trait Implementations§
impl RefUnwindSafe for Ptr
impl Send for Ptr
impl Sync for Ptr
impl Unpin for Ptr
impl UnwindSafe for Ptr
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