pub enum ControlFlowRepeatPredicateDefinition {
ElemId(Token),
ElemIdIndexId(Token, Token),
}
Expand description
Container for holding parsed data describing a Repeat (for
)
predicate, for example the (elem, i)
in for (elem, i) in foo
or
the elem
in for elem in foo
Variants§
Implementations§
source§impl ControlFlowRepeatPredicateDefinition
impl ControlFlowRepeatPredicateDefinition
pub fn get_symbols(&self) -> HashSet<String>
Trait Implementations§
source§impl Clone for ControlFlowRepeatPredicateDefinition
impl Clone for ControlFlowRepeatPredicateDefinition
source§fn clone(&self) -> ControlFlowRepeatPredicateDefinition
fn clone(&self) -> ControlFlowRepeatPredicateDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for ControlFlowRepeatPredicateDefinition
impl<'de> Deserialize<'de> for ControlFlowRepeatPredicateDefinition
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
source§impl PartialEq for ControlFlowRepeatPredicateDefinition
impl PartialEq for ControlFlowRepeatPredicateDefinition
source§fn eq(&self, other: &ControlFlowRepeatPredicateDefinition) -> bool
fn eq(&self, other: &ControlFlowRepeatPredicateDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ControlFlowRepeatPredicateDefinition
impl StructuralPartialEq for ControlFlowRepeatPredicateDefinition
Auto Trait Implementations§
impl Freeze for ControlFlowRepeatPredicateDefinition
impl RefUnwindSafe for ControlFlowRepeatPredicateDefinition
impl Send for ControlFlowRepeatPredicateDefinition
impl Sync for ControlFlowRepeatPredicateDefinition
impl Unpin for ControlFlowRepeatPredicateDefinition
impl UnwindSafe for ControlFlowRepeatPredicateDefinition
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.