Struct forth3::CallContext
source · pub struct CallContext<T: 'static> {
pub(crate) eh: NonNull<EntryHeader<T>>,
pub(crate) idx: u16,
pub(crate) len: u16,
}
Fields§
§eh: NonNull<EntryHeader<T>>
§idx: u16
§len: u16
Implementations§
source§impl<T: 'static> CallContext<T>
impl<T: 'static> CallContext<T>
pub(crate) fn get_next_n_words(&self, n: u16) -> Result<&[Word], Error>
pub(crate) fn get_current_val(&self) -> Result<i32, Error>
pub(crate) fn get_current_word(&self) -> Result<Word, Error>
pub(crate) fn offset(&mut self, offset: i32) -> Result<(), Error>
pub(crate) fn get_word_at_cur_idx(&self) -> Option<&Word>
Trait Implementations§
source§impl<T: 'static> Clone for CallContext<T>
impl<T: 'static> Clone for CallContext<T>
impl<T: 'static> Copy for CallContext<T>
Auto Trait Implementations§
impl<T> Freeze for CallContext<T>
impl<T> RefUnwindSafe for CallContext<T>where
T: RefUnwindSafe,
impl<T> !Send for CallContext<T>
impl<T> !Sync for CallContext<T>
impl<T> Unpin for CallContext<T>
impl<T> UnwindSafe for CallContext<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)