Enum cedar_policy_core::parser::cst::Primary
source · pub enum Primary {
Literal(ASTNode<Option<Literal>>),
Ref(ASTNode<Option<Ref>>),
Name(ASTNode<Option<Name>>),
Slot(ASTNode<Option<Slot>>),
Expr(ASTNode<Option<Expr>>),
EList(Vec<ASTNode<Option<Expr>>>),
RInits(Vec<ASTNode<Option<RecInit>>>),
}
Expand description
Low-level elements like literals
Variants§
Literal(ASTNode<Option<Literal>>)
Literal
Ref(ASTNode<Option<Ref>>)
References to entities
Name(ASTNode<Option<Name>>)
Constructed elements with names
Slot(ASTNode<Option<Slot>>)
Template Slots
Expr(ASTNode<Option<Expr>>)
Parentheses
EList(Vec<ASTNode<Option<Expr>>>)
Constructed array
RInits(Vec<ASTNode<Option<RecInit>>>)
Constructed record
Trait Implementations§
impl Eq for Primary
impl StructuralPartialEq for Primary
Auto Trait Implementations§
impl Freeze for Primary
impl RefUnwindSafe for Primary
impl Send for Primary
impl Sync for Primary
impl Unpin for Primary
impl UnwindSafe for Primary
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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