pub enum CollectionLiteral {
ArrayLiteral(ArrayLiteral),
DictLiteral(DictLiteral),
SetLiteral(SetLiteral),
OrderedDictLiteral(OrderedDictLiteral),
}Variants§
ArrayLiteral(ArrayLiteral)
DictLiteral(DictLiteral)
SetLiteral(SetLiteral)
OrderedDictLiteral(OrderedDictLiteral)
Trait Implementations§
Source§impl AstNode for CollectionLiteral
impl AstNode for CollectionLiteral
Source§impl Clone for CollectionLiteral
impl Clone for CollectionLiteral
Source§fn clone(&self) -> CollectionLiteral
fn clone(&self) -> CollectionLiteral
Returns a duplicate 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 Debug for CollectionLiteral
impl Debug for CollectionLiteral
Source§impl From<ArrayLiteral> for CollectionLiteral
impl From<ArrayLiteral> for CollectionLiteral
Source§fn from(value: ArrayLiteral) -> Self
fn from(value: ArrayLiteral) -> Self
Converts to this type from the input type.
Source§impl From<CollectionLiteral> for ExpressionKind
impl From<CollectionLiteral> for ExpressionKind
Source§fn from(value: CollectionLiteral) -> Self
fn from(value: CollectionLiteral) -> Self
Converts to this type from the input type.
Source§impl From<DictLiteral> for CollectionLiteral
impl From<DictLiteral> for CollectionLiteral
Source§fn from(value: DictLiteral) -> Self
fn from(value: DictLiteral) -> Self
Converts to this type from the input type.
Source§impl From<OrderedDictLiteral> for CollectionLiteral
impl From<OrderedDictLiteral> for CollectionLiteral
Source§fn from(value: OrderedDictLiteral) -> Self
fn from(value: OrderedDictLiteral) -> Self
Converts to this type from the input type.
Source§impl From<SetLiteral> for CollectionLiteral
impl From<SetLiteral> for CollectionLiteral
Source§fn from(value: SetLiteral) -> Self
fn from(value: SetLiteral) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CollectionLiteral
impl PartialEq for CollectionLiteral
impl Eq for CollectionLiteral
impl StructuralPartialEq for CollectionLiteral
Auto Trait Implementations§
impl Freeze for CollectionLiteral
impl RefUnwindSafe for CollectionLiteral
impl Send for CollectionLiteral
impl Sync for CollectionLiteral
impl Unpin for CollectionLiteral
impl UnwindSafe for CollectionLiteral
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> 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