[][src]Struct broom::Rooted

pub struct Rooted<T> { /* fields omitted */ }

A handle to a heap object that guarantees the object will not be cleaned up by the garbage collector.

Rooted may be cheaply copied as is necessary to serve your needs. It's even legal for it to outlive the object it refers to, provided it is no longer used to access it afterwards.

Methods

impl<T> Rooted<T>[src]

pub fn into_handle(self) -> Handle<T>[src]

pub fn handle(&self) -> Handle<T>[src]

Trait Implementations

impl<T> AsRef<Handle<T>> for Rooted<T>[src]

impl<T> Clone for Rooted<T>[src]

impl<T: Debug> Debug for Rooted<T>[src]

impl<T> From<Rooted<T>> for Handle<T>[src]

impl<O: Trace<O>> Trace<O> for Rooted<O>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Rooted<T>

impl<T> !Send for Rooted<T>

impl<T> !Sync for Rooted<T>

impl<T> Unpin for Rooted<T>

impl<T> UnwindSafe for Rooted<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.