pub struct View<'a> {
pub kind: Kind,
pub lo: i64,
pub hash: u64,
pub sum: u64,
pub flags: u8,
pub data: &'a [Handle],
}Expand description
A read-only view of a compound, from either region.
Fields§
§kind: KindThe kind.
lo: i64IntFcn: the domain’s lower bound. Interval: its lower bound.
hash: u64The value hash.
sum: u64The raw additive sum the hash finalizes (sets and functions).
flags: u8Representation bits (flags); not part of identity.
data: &'a [Handle]The contents.
Implementations§
Source§impl View<'_>
impl View<'_>
Sourcepub fn is_lazy(&self) -> bool
pub fn is_lazy(&self) -> bool
Whether the value must be closed by the evaluator first
(flags::LAZY).
Sourcepub fn is_norm(&self) -> bool
pub fn is_norm(&self) -> bool
The representation’s isNorm bit, not a certificate of construction
history. Selected local literal views use their arena-owned phase;
an alias can be normalized while retaining its original raw view.
Sourcepub fn is_record_literal(&self) -> bool
pub fn is_record_literal(&self) -> bool
Whether a function was built by a record literal (flags::RECORD).
Sourcepub fn is_tuple_literal(&self) -> bool
pub fn is_tuple_literal(&self) -> bool
Whether a function was built by a tuple literal (flags::TUPLE).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for View<'a>
impl<'a> Freeze for View<'a>
impl<'a> Move for View<'a>
impl<'a> RefUnwindSafe for View<'a>
impl<'a> Send for View<'a>
impl<'a> Sync for View<'a>
impl<'a> Unpin for View<'a>
impl<'a> UnsafeUnpin for View<'a>
impl<'a> UnwindSafe for View<'a>
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