Trait udi::UserData [−][src]
Methods
impl UserData
impl UserData
pub fn is<__T: UserData>(&self) -> bool
pub fn is<__T: UserData>(&self) -> bool
Returns true if the boxed type is the same as __T
.
pub fn downcast_ref<__T: UserData>(&self) -> Option<&__T>
pub fn downcast_ref<__T: UserData>(&self) -> Option<&__T>
Returns a reference to the boxed value if it is of type __T
, or
None
if it isn't.
pub fn downcast_mut<__T: UserData>(&mut self) -> Option<&mut __T>
pub fn downcast_mut<__T: UserData>(&mut self) -> Option<&mut __T>
Returns a mutable reference to the boxed value if it is of type
__T
, or None
if it isn't.