Trait sindra::ty::Typed [] [src]

pub trait Typed<T: Type> {
    fn ty(&self) -> Option<T>;
fn set_type(&mut self, ty: Option<T>);
fn promoted(&self) -> Option<T>; fn promote_type(&self) -> Option<T> { ... }
fn set_promote_type(&mut self, ty: Option<T>) { ... } }

Methods for accessing Type information for an object.

Required Methods

Retrieve the Type (if set).

Set (or unset if passing None) the Type.

Retrieve promoted type, if any type is set.

Provided Methods

Retrieve the promotion Type (if set). Defaults to ty() if not implemented.

Set (or unset if passing None) the promotion Type. Default to set_type() if not implemented.

Implementors