pub struct ObjRef<'lean, 'a> { /* private fields */ }Expand description
Borrowed view of an Obj.
ObjRef<'lean, 'a> carries no refcount obligation: construction and
destruction are no-ops. The double phantom records both the runtime
borrow ('lean) and the borrow of the owning Obj<'lean> ('a);
the latter prevents a view from outliving its source.
Implementations§
Source§impl ObjRef<'_, '_>
impl ObjRef<'_, '_>
Sourcepub fn as_raw_borrowed(&self) -> *mut lean_object
pub fn as_raw_borrowed(&self) -> *mut lean_object
Borrow the underlying raw pointer for a borrowed-argument FFI
call (b_lean_obj_arg).
Trait Implementations§
Auto Trait Implementations§
impl<'lean, 'a> Freeze for ObjRef<'lean, 'a>
impl<'lean, 'a> RefUnwindSafe for ObjRef<'lean, 'a>
impl<'lean, 'a> !Send for ObjRef<'lean, 'a>
impl<'lean, 'a> !Sync for ObjRef<'lean, 'a>
impl<'lean, 'a> Unpin for ObjRef<'lean, 'a>
impl<'lean, 'a> UnsafeUnpin for ObjRef<'lean, 'a>
impl<'lean, 'a> UnwindSafe for ObjRef<'lean, 'a>
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