Struct forth3::dictionary::OwnedDict
source · pub struct OwnedDict<T: 'static>(NonNull<Dictionary<T>>);
Expand description
A handle to an owned, mutable dictionary allocation.
Tuple Fields§
§0: NonNull<Dictionary<T>>
Implementations§
source§impl<T: 'static> OwnedDict<T>
impl<T: 'static> OwnedDict<T>
pub fn new<D: DropDict>( dict: NonNull<MaybeUninit<Dictionary<T>>>, size: usize, ) -> Self
sourcepub(crate) fn fork_onto(&mut self, new: OwnedDict<T>) -> SharedDict<T>
pub(crate) fn fork_onto(&mut self, new: OwnedDict<T>) -> SharedDict<T>
We swap self
to the new, empty OwnedDict, and turn the old self
into a SharedDict, both as the parent of our new self, as well as
returning it for other use.
pub(crate) fn set_parent(&mut self, parent: SharedDict<T>)
Methods from Deref<Target = Dictionary<T>>§
const MUTABLE: usize = 18_446_744_073_709_551_615usize
pub(crate) fn add_bi_fastr( &mut self, name: FaStr, bi: fn(_: &mut Forth<T>) -> Result<(), Error>, ) -> Result<(), BumpError>
pub(crate) fn build_entry(&mut self) -> Result<EntryBuilder<'_, T>, BumpError>
pub(crate) fn entries(&self) -> Entries<'_, T> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OwnedDict<T>
impl<T> RefUnwindSafe for OwnedDict<T>where
T: RefUnwindSafe,
impl<T> !Send for OwnedDict<T>
impl<T> !Sync for OwnedDict<T>
impl<T> Unpin for OwnedDict<T>
impl<T> UnwindSafe for OwnedDict<T>where
T: RefUnwindSafe,
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