pub enum Call {
Invocation(Key, Arguments),
HoInvocation(Key),
Lambda(TreeType, Calls),
Decorator(TreeType, Arguments, Box<Call>),
}
Expand description
A call to a tree
Variants§
Invocation(Key, Arguments)
An invocation of a tree like ‘root main { invocation()}’
HoInvocation(Key)
An Higher order invocation of a tree like ‘root main { ho-invocation(..)}’
Lambda(TreeType, Calls)
A lambda call like ‘root main { sequence {…} }’
Decorator(TreeType, Arguments, Box<Call>)
A decorator call like ‘root main { decorator(..) child() }’
Implementations§
Source§impl Call
impl Call
pub fn is_lambda(&self) -> bool
pub fn is_decorator(&self) -> bool
pub fn get_ho_invocation(&self) -> Option<Key>
pub fn key(&self) -> Option<Key>
pub fn arguments(&self) -> Arguments
pub fn invocation(id: &str, args: Arguments) -> Self
pub fn ho_invocation(id: &str) -> Self
pub fn lambda(tpe: TreeType, calls: Calls) -> Self
pub fn decorator(tpe: TreeType, args: Arguments, call: Call) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Call
impl<'de> Deserialize<'de> for Call
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl Freeze for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnwindSafe for Call
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more