pub struct OnionStaticObject { /* private fields */ }Implementations§
Source§impl OnionStaticObject
impl OnionStaticObject
pub fn new(obj: OnionObject) -> Self
pub fn weak(&self) -> &OnionObject
pub fn mutablize( &self, gc: &mut GC<OnionObjectCell>, ) -> Result<OnionStaticObject, RuntimeError>
Trait Implementations§
Source§impl Clone for OnionStaticObject
impl Clone for OnionStaticObject
Source§fn clone(&self) -> OnionStaticObject
fn clone(&self) -> OnionStaticObject
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnionStaticObject
impl Debug for OnionStaticObject
Source§impl Default for OnionStaticObject
impl Default for OnionStaticObject
Auto Trait Implementations§
impl Freeze for OnionStaticObject
impl !RefUnwindSafe for OnionStaticObject
impl Send for OnionStaticObject
impl Sync for OnionStaticObject
impl Unpin for OnionStaticObject
impl !UnwindSafe for OnionStaticObject
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