Skip to main content

Precursor

Trait Precursor 

Source
pub trait Precursor: Send + Sync {
    // Required methods
    fn id(&self) -> PrecursorId;
    fn ethics(&self) -> &Ethics;
    fn origin(&self) -> Coord;
    fn resources(&self) -> &Resources;
    fn resources_mut(&mut self) -> &mut Resources;
}

Required Methods§

Source

fn id(&self) -> PrecursorId

Source

fn ethics(&self) -> &Ethics

Source

fn origin(&self) -> Coord

Source

fn resources(&self) -> &Resources

Source

fn resources_mut(&mut self) -> &mut Resources

Trait Implementations§

Source§

impl From<&dyn Precursor> for PublicPrecursor

Source§

fn from(precursor: &dyn Precursor) -> Self

Converts to this type from the input type.
Source§

impl From<&dyn Precursor> for Ruler

Source§

fn from(precursor: &dyn Precursor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a dyn Precursor> for RulerRef<'a>

Source§

fn from(precursor: &'a dyn Precursor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut dyn Precursor> for RulerRefMut<'a>

Source§

fn from(precursor: &'a mut dyn Precursor) -> Self

Converts to this type from the input type.

Implementors§