pub struct StringRecord {
pub is_atom: bool,
pub keep: AtomKeep,
pub array_index: u32,
/* private fields */
}Fields§
§is_atom: bool§keep: AtomKeepWhat keeps an atom alive besides its holders.
array_index: u32For atoms spelling an array index too large for an immediate
PropertyKey: that index, else NONE.
Implementations§
Source§impl StringRecord
impl StringRecord
pub fn new(repr: StringRepr) -> Self
Sourcepub fn rope(len: u32, one_byte: bool) -> Self
pub fn rope(len: u32, one_byte: bool) -> Self
A rope len units long; the heap records its halves.
Sourcepub fn repr(&self) -> &StringRepr
pub fn repr(&self) -> &StringRepr
The units. A rope reached through super::Heap::string is flat.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_one_byte(&self) -> bool
pub fn hash(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StringRecord
impl !RefUnwindSafe for StringRecord
impl !Sync for StringRecord
impl Send for StringRecord
impl Unpin for StringRecord
impl UnsafeUnpin for StringRecord
impl UnwindSafe for StringRecord
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