Trait Bag

Source
pub unsafe trait Bag {
    // Required methods
    fn is_empty(&self) -> bool;
    fn clear(&mut self);
}
Expand description

Trait that defines the methods that a DEVS event bag set must implement.

§Safety

This trait must be implemented via macros. Do not implement it manually.

Required Methods§

Source

fn is_empty(&self) -> bool

Returns true if the ports are empty.

Source

fn clear(&mut self)

Clears the ports, removing all values.

Implementors§

Source§

impl<T: Clone, const N: usize> Bag for Port<T, N>