pub enum TCRef {
After(Box<After>),
Case(Box<Case>),
Id(IdRef),
If(Box<IfRef>),
Op(OpRef),
While(Box<While>),
With(Box<With>),
}
Expand description
A reference to a State
.
Variants§
After(Box<After>)
Case(Box<Case>)
Id(IdRef)
If(Box<IfRef>)
Op(OpRef)
While(Box<While>)
With(Box<With>)
Trait Implementations§
source§impl FromStream for TCRef
impl FromStream for TCRef
source§impl GetSize for TCRef
impl GetSize for TCRef
source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
source§impl<'en> IntoStream<'en> for TCRef
impl<'en> IntoStream<'en> for TCRef
source§impl PartialEq for TCRef
impl PartialEq for TCRef
source§impl<State> Refer<State> for TCRefwhere
State: StateInstance + Refer<State> + From<Scalar>,
State::Closure: From<(Map<State>, OpDef)> + TryCastFrom<State>,
Map<State>: TryFrom<State, Error = TCError>,
Value: TryFrom<State, Error = TCError> + TryCastFrom<State>,
bool: TryCastFrom<State>,
impl<State> Refer<State> for TCRefwhere
State: StateInstance + Refer<State> + From<Scalar>,
State::Closure: From<(Map<State>, OpDef)> + TryCastFrom<State>,
Map<State>: TryFrom<State, Error = TCError>,
Value: TryFrom<State, Error = TCError> + TryCastFrom<State>,
bool: TryCastFrom<State>,
source§fn dereference_self(self, path: &TCPathBuf) -> Self
fn dereference_self(self, path: &TCPathBuf) -> Self
Replace references to “$self” with the given relative path. Read more
source§fn is_conditional(&self) -> bool
fn is_conditional(&self) -> bool
Return
true
if this is a conditional reference (e.g. If
or Case
).source§fn is_inter_service_write(&self, cluster_path: &[PathSegment]) -> bool
fn is_inter_service_write(&self, cluster_path: &[PathSegment]) -> bool
Return
true
if this references a write operation to a cluster other than the path given.source§fn reference_self(self, path: &TCPathBuf) -> Self
fn reference_self(self, path: &TCPathBuf) -> Self
Replace the given relative path with “$self”. Read more
source§fn requires(&self, deps: &mut HashSet<Id>)
fn requires(&self, deps: &mut HashSet<Id>)
Add the dependency [
Id
]s of this reference to the given set.source§impl TryCastFrom<Scalar> for TCRef
impl TryCastFrom<Scalar> for TCRef
source§fn can_cast_from(scalar: &Scalar) -> bool
fn can_cast_from(scalar: &Scalar) -> bool
Test if
value
can be cast into Self
.source§fn opt_cast_from(scalar: Scalar) -> Option<Self>
fn opt_cast_from(scalar: Scalar) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.source§impl TryCastFrom<TCRef> for Id
impl TryCastFrom<TCRef> for Id
source§fn can_cast_from(tc_ref: &TCRef) -> bool
fn can_cast_from(tc_ref: &TCRef) -> bool
Test if
value
can be cast into Self
.source§fn opt_cast_from(tc_ref: TCRef) -> Option<Self>
fn opt_cast_from(tc_ref: TCRef) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.source§impl TryCastFrom<TCRef> for OpRef
impl TryCastFrom<TCRef> for OpRef
source§fn can_cast_from(tc_ref: &TCRef) -> bool
fn can_cast_from(tc_ref: &TCRef) -> bool
Test if
value
can be cast into Self
.source§fn opt_cast_from(tc_ref: TCRef) -> Option<Self>
fn opt_cast_from(tc_ref: TCRef) -> Option<Self>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.impl Eq for TCRef
impl StructuralPartialEq for TCRef
Auto Trait Implementations§
impl RefUnwindSafe for TCRef
impl Send for TCRef
impl Sync for TCRef
impl Unpin for TCRef
impl UnwindSafe for TCRef
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
§impl<'en, T> FileLoad for T
impl<'en, T> FileLoad for T
§impl<'en, T> FileSave<'en> for T
impl<'en, T> FileSave<'en> for T
source§impl<F> Match for F
impl<F> Match for F
source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true
if self
can be cast into the target type T
.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value
can be cast into Self
.source§fn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self
can be cast into T
.source§fn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns
Some(T)
if self
can be cast into T
, otherwise None
.