TermBuilder

Trait TermBuilder 

Source
pub trait TermBuilder: Sized {
    // Required methods
    fn world(&mut self) -> *mut ecs_world_t;
    fn filter_desc(&mut self) -> &mut ecs_filter_desc_t;
    fn current_term(&mut self) -> &mut ecs_term_t;
    fn next_term(&mut self);

    // Provided methods
    fn term<A: Component>(self) -> Self { ... }
    fn without<A: Component>(self) -> Self { ... }
    fn term_dynamic(self, comp_id: EntityId) -> Self { ... }
    fn with_components<'c, G: ComponentGroup<'c>>(self) -> Self { ... }
}

Required Methods§

Source

fn world(&mut self) -> *mut ecs_world_t

Source

fn filter_desc(&mut self) -> &mut ecs_filter_desc_t

Source

fn current_term(&mut self) -> &mut ecs_term_t

Source

fn next_term(&mut self)

Provided Methods§

Source

fn term<A: Component>(self) -> Self

Source

fn without<A: Component>(self) -> Self

Source

fn term_dynamic(self, comp_id: EntityId) -> Self

Source

fn with_components<'c, G: ComponentGroup<'c>>(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§