pub struct ListExprElement {
pub expr: Expr,
pub optional: bool,
}Expand description
An element in a list expression.
List elements wrap expressions with metadata about whether they are optional.
Fields§
§expr: ExprThe expression value of this element.
optional: boolIf true, this element is omitted if the expression is undefined.
Trait Implementations§
Source§impl Debug for ListExprElement
impl Debug for ListExprElement
Source§impl From<&ListExprElement> for ListExprElement
impl From<&ListExprElement> for ListExprElement
Source§fn from(value: &ListExprElement) -> Self
fn from(value: &ListExprElement) -> Self
Converts to this type from the input type.
Source§impl From<&ListExprElement> for UniquePtr<ListExprElement>
impl From<&ListExprElement> for UniquePtr<ListExprElement>
Source§fn from(value: &ListExprElement) -> Self
fn from(value: &ListExprElement) -> Self
Converts to this type from the input type.
Source§impl From<ListExprElement> for UniquePtr<ListExprElement>
impl From<ListExprElement> for UniquePtr<ListExprElement>
Source§fn from(element: ListExprElement) -> Self
fn from(element: ListExprElement) -> Self
Converts to this type from the input type.
Source§impl From<UniquePtr<ListExprElement>> for ListExprElement
impl From<UniquePtr<ListExprElement>> for ListExprElement
Source§fn from(value: UniquePtr<ListExprElement>) -> Self
fn from(value: UniquePtr<ListExprElement>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ListExprElement
impl RefUnwindSafe for ListExprElement
impl Send for ListExprElement
impl Sync for ListExprElement
impl Unpin for ListExprElement
impl UnwindSafe for ListExprElement
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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