Struct janetrs::JanetPointer
source · pub struct JanetPointer { /* private fields */ }
Expand description
Janet pointer type.
This type works and behaves as *mut c_void
.
JanetPointer usage should be avoided, alternatively you can use JanetAbstract
instead. It is only used by Janet internally for optimization properties and some
Janet modules uses it as well for the same purposes.
Implementations§
source§impl JanetPointer
impl JanetPointer
Trait Implementations§
source§impl Clone for JanetPointer
impl Clone for JanetPointer
source§fn clone(&self) -> JanetPointer
fn clone(&self) -> JanetPointer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JanetPointer
impl Debug for JanetPointer
source§impl From<&JanetPointer> for Janet
impl From<&JanetPointer> for Janet
source§fn from(val: &JanetPointer) -> Self
fn from(val: &JanetPointer) -> Self
Converts to this type from the input type.
source§impl From<JanetPointer> for Janet
impl From<JanetPointer> for Janet
source§fn from(val: JanetPointer) -> Self
fn from(val: JanetPointer) -> Self
Converts to this type from the input type.
source§impl Hash for JanetPointer
impl Hash for JanetPointer
source§impl JanetTypeName for JanetPointer
impl JanetTypeName for JanetPointer
source§impl Ord for JanetPointer
impl Ord for JanetPointer
source§fn cmp(&self, other: &JanetPointer) -> Ordering
fn cmp(&self, other: &JanetPointer) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for JanetPointer
impl PartialEq for JanetPointer
source§fn eq(&self, other: &JanetPointer) -> bool
fn eq(&self, other: &JanetPointer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for JanetPointer
impl PartialOrd for JanetPointer
source§fn partial_cmp(&self, other: &JanetPointer) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetPointer) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Pointer for JanetPointer
impl Pointer for JanetPointer
source§impl TryFrom<Janet> for JanetPointer
impl TryFrom<Janet> for JanetPointer
impl Copy for JanetPointer
impl Eq for JanetPointer
impl StructuralPartialEq for JanetPointer
Auto Trait Implementations§
impl Freeze for JanetPointer
impl !RefUnwindSafe for JanetPointer
impl !Send for JanetPointer
impl !Sync for JanetPointer
impl Unpin for JanetPointer
impl UnwindSafe for JanetPointer
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