Trait TypedObject

Source
pub trait TypedObject {
    type Base: BaseType;

    // Required methods
    fn base_ref(&self) -> Ref<'_, Self::Base>;
    fn base(&self) -> &Self::Base;
}
Expand description

Operations common to structured objects.

Required Associated Types§

Source

type Base: BaseType

The base type of this object.

Required Methods§

Source

fn base_ref(&self) -> Ref<'_, Self::Base>

Returns a resolved reference to the object’s base.

Source

fn base(&self) -> &Self::Base

Implementors§

Source§

impl<B: BaseType> TypedObject for TxObject<B>

Source§

type Base = B

Source§

impl<Base: BaseType> TypedObject for MutObject<Base>

Source§

type Base = Base

Source§

impl<Base: BaseType> TypedObject for Object<Base>

Source§

type Base = Base