Trait query_interface::Object
[−]
[src]
pub unsafe trait Object: Any { }
This trait is the primary function of the library. Object
trait objects
can be freely queried for any other trait, allowing conversion between
trait objects.
Methods
impl Object
[src]
pub fn query_ref<U: Any + ?Sized>(&self) -> Option<&U>
[src]
pub fn query_mut<U: Any + ?Sized>(&mut self) -> Option<&mut U>
[src]
pub fn query<U: Any + ?Sized>(self: Box<Self>) -> Result<Box<U>, Box<Self>>
[src]
pub fn query_arc<U: Any + ?Sized>(self_: Arc<Self>) -> Result<Arc<U>, Arc<Self>>
[src]
pub fn query_rc<U: Any + ?Sized>(self_: Rc<Self>) -> Result<Rc<U>, Rc<Self>>
[src]
pub fn obj_partial_eq(&self, other: &Self) -> bool
[src]
pub fn obj_partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
Trait Implementations
impl ToOwned for Object
[src]
type Owned = Box<Object>
fn to_owned(&self) -> Box<Object>
[src]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Debug for Object
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Object
[src]
fn eq(&self, other: &Self) -> bool
[src]
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[src]
This method tests for !=
.
impl Eq for Object
[src]
impl PartialOrd for Object
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
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[src]
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[src]
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[src]
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
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for Object
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more