pub struct InterfaceRef<'a, T: IsInterface>(_, _, _);
Expand description

Reference to a class struct of type T.

Methods from Deref<Target = Interface<T>>

Get the type id for this interface.

This is equivalent to T::static_type().

Get the type id for the instance type of this interface.

This is not equivalent to T::static_type() but is the type id of the type this specific interface belongs to.

Gets the parent interface struct, if any.

This returns the parent interface if a parent type of the instance type also implements the interface.

Check if this interface has a property property_name of the given type_.

If no type is provided then only the existence of the property is checked.

Get the type of the property property_name of this interface.

This returns None if the property does not exist.

Get the ParamSpec of the property property_name of this interface.

Return all ParamSpec of the properties of this interface.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.