pub(crate) struct ByteFnPrototype {
pub(crate) args: FnArgs,
pub(crate) depth: usize,
pub(super) op_codes: Box<[u8]>,
pub(super) constants: Slot<&'static LispVec>,
}Fields§
§args: FnArgs§depth: usize§op_codes: Box<[u8]>§constants: Slot<&'static LispVec>Implementations§
Source§impl ByteFnPrototype
impl ByteFnPrototype
pub(crate) fn codes(&self) -> &[u8] ⓘ
pub(crate) fn consts<'ob>(&'ob self) -> &'ob [Gc<ObjectType<'ob>>]
Sourcepub(crate) fn consts_mut(&self) -> Result<&[MutObjCell]>
pub(crate) fn consts_mut(&self) -> Result<&[MutObjCell]>
Mutable view of the constants vector. Used by the pdump loader to patch placeholder values after allocation.
pub(crate) fn index<'ob>( &self, index: usize, cx: &'ob Context<'_>, ) -> Option<Gc<ObjectType<'ob>>>
pub(crate) const fn len(&self) -> usize
Trait Implementations§
Source§impl IntoObject for ByteFnPrototype
impl IntoObject for ByteFnPrototype
Source§impl PartialEq for ByteFnPrototype
impl PartialEq for ByteFnPrototype
Source§fn eq(&self, other: &ByteFnPrototype) -> bool
fn eq(&self, other: &ByteFnPrototype) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RootedDeref for ByteFnPrototype
impl RootedDeref for ByteFnPrototype
type Target = RootedByteFnPrototype
fn rooted_deref(rooted: &Rt<Self>) -> &Self::Target
fn rooted_derefmut(rooted: &mut Rt<Self>) -> &mut Self::Target
impl Eq for ByteFnPrototype
impl StructuralPartialEq for ByteFnPrototype
Auto Trait Implementations§
impl !Freeze for ByteFnPrototype
impl !RefUnwindSafe for ByteFnPrototype
impl !Send for ByteFnPrototype
impl !Sync for ByteFnPrototype
impl Unpin for ByteFnPrototype
impl UnsafeUnpin for ByteFnPrototype
impl !UnwindSafe for ByteFnPrototype
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.