Trait query_interface::Object
[−]
[src]
pub unsafe trait Object: Any { fn query_vtable(&self, id: TypeId) -> Option<VTable>; }
Required Methods
fn query_vtable(&self, id: TypeId) -> Option<VTable>
Methods
impl Object
[src]
fn query_ref<U: Any + ?Sized>(&self) -> Option<&U>
fn query_mut<U: Any + ?Sized>(&mut self) -> Option<&mut U>
fn query<U: Any + ?Sized>(self: Box<Self>) -> Result<Box<U>, Box<Self>>
fn obj_partial_eq(&self, other: &Self) -> bool
fn obj_partial_cmp(&self, other: &Self) -> Option<Ordering>
Trait Implementations
impl ToOwned for Object
[src]
type Owned = Box<Object>
fn to_owned(&self) -> Box<Object>
Creates owned data from borrowed data, usually by cloning. Read more
impl Debug for Object
[src]
impl PartialEq for Object
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Object
[src]
impl PartialOrd for Object
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Object
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for Object
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.