Struct shred::FetchId
[−]
[src]
pub struct FetchId<'a> { /* fields omitted */ }
Return value of Resources::fetch_id
.
Methods from Deref<Target = Resource>
fn is<T: Resource>(&self) -> bool
Returns true if the boxed type is the same as T
fn downcast_ref<T: Resource>(&self) -> Option<&T>
Returns some reference to the boxed value if it is of type T
, or
None
if it isn't.
unsafe fn downcast_ref_unchecked<T: Resource>(&self) -> &T
Returns a reference to the boxed value, blindly assuming it to be of type T
.
If you are not absolutely certain of T
, you must not call this.
fn downcast<T: Resource>(self: Box<Self>) -> Result<Box<T>, Box<Self>>
Returns the boxed value if it is of type T
, or Err(Self)
if it isn't.
unsafe fn downcast_unchecked<T: Resource>(self: Box<Self>) -> Box<T>
Returns the boxed value, blindly assuming it to be of type T
.
If you are not absolutely certain of T
, you must not call this.