Trait EntityWriter

Source
pub trait EntityWriter {
    // Required methods
    fn set(self, entity: &mut Option<Entity>);
    fn push(self, destination: &mut Vec<Entity>);
}
Expand description

Adds a helper method to Entity that allows it to be sent to an Option ergonomically.

Required Methods§

Source

fn set(self, entity: &mut Option<Entity>)

Source

fn push(self, destination: &mut Vec<Entity>)

Implementations on Foreign Types§

Source§

impl EntityWriter for Entity

Source§

fn set(self, entity: &mut Option<Entity>)

Copies this entity into an Option.

Source§

fn push(self, entities: &mut Vec<Entity>)

Pushes a copy of this Entity into a Vec.

Implementors§