Object

Trait Object 

Source
pub trait Object {
    type Kind;

    // Required methods
    fn id(&self) -> &Url;
    fn kind(&self) -> &Self::Kind;
}
Expand description

A type that represents an Object

Required Associated Types§

Source

type Kind

The Kind of object, e.g. Note, Video, Image, etc.

Required Methods§

Source

fn id(&self) -> &Url

The Object’s ID

Source

fn kind(&self) -> &Self::Kind

The kind of Object

Implementations on Foreign Types§

Source§

impl<'a, T> Object for &'a T
where T: Object,

Source§

type Kind = <T as Object>::Kind

Source§

fn id(&self) -> &Url

Source§

fn kind(&self) -> &Self::Kind

Source§

impl<'a, T> Object for &'a mut T
where T: Object,

Source§

type Kind = <T as Object>::Kind

Source§

fn id(&self) -> &Url

Source§

fn kind(&self) -> &Self::Kind

Source§

impl<T> Object for Box<T>
where T: Object,

Source§

type Kind = <T as Object>::Kind

Source§

fn id(&self) -> &Url

Source§

fn kind(&self) -> &Self::Kind

Source§

impl<T> Object for Rc<T>
where T: Object,

Source§

type Kind = <T as Object>::Kind

Source§

fn id(&self) -> &Url

Source§

fn kind(&self) -> &Self::Kind

Source§

impl<T> Object for Arc<T>
where T: Object,

Source§

type Kind = <T as Object>::Kind

Source§

fn id(&self) -> &Url

Source§

fn kind(&self) -> &Self::Kind

Implementors§