[][src]Struct genie_scx::Trigger

pub struct Trigger { /* fields omitted */ }

A trigger, describing automatic interactive behaviours in a scenario.

Implementations

impl Trigger[src]

pub fn read_from(input: impl Read, version: f64) -> Result<Self>[src]

Read a trigger from an input stream, with the given trigger system version.

pub fn write_to(&self, output: impl Write, version: f64) -> Result<()>[src]

Write this trigger condition to an output stream, with the given trigger system version.

pub fn conditions(&self) -> impl Iterator<Item = &TriggerCondition>[src]

Get the conditions in this trigger, in display order.

pub fn conditions_unordered_mut(
    &mut self
) -> impl Iterator<Item = &mut TriggerCondition>
[src]

Get the conditions in this trigger, unordered.

pub fn effects(&self) -> impl Iterator<Item = &TriggerEffect>[src]

Get the effects in this trigger, in display order.

pub fn effects_unordered_mut(
    &mut self
) -> impl Iterator<Item = &mut TriggerEffect>
[src]

Get the effects in this trigger, unordered.

Trait Implementations

impl Clone for Trigger[src]

impl Debug for Trigger[src]

Auto Trait Implementations

impl RefUnwindSafe for Trigger

impl Send for Trigger

impl Sync for Trigger

impl Unpin for Trigger

impl UnwindSafe for Trigger

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.