pub struct MapExprEntry {
pub id: i64,
pub key: Expr,
pub value: Expr,
pub optional: bool,
}Expand description
An entry in a map expression.
Map entries consist of key and value expressions, plus an optional flag.
Fields§
§id: i64The unique ID of this entry for source tracking.
key: ExprThe expression providing the map key.
value: ExprThe expression providing the map value.
optional: boolIf true, this entry is omitted if key or value is undefined.
Trait Implementations§
Source§impl Debug for MapExprEntry
impl Debug for MapExprEntry
Source§impl From<&MapExprEntry> for MapExprEntry
impl From<&MapExprEntry> for MapExprEntry
Source§fn from(value: &MapExprEntry) -> Self
fn from(value: &MapExprEntry) -> Self
Converts to this type from the input type.
Source§impl From<&MapExprEntry> for UniquePtr<MapExprEntry>
impl From<&MapExprEntry> for UniquePtr<MapExprEntry>
Source§fn from(value: &MapExprEntry) -> Self
fn from(value: &MapExprEntry) -> Self
Converts to this type from the input type.
Source§impl From<MapExprEntry> for UniquePtr<MapExprEntry>
impl From<MapExprEntry> for UniquePtr<MapExprEntry>
Source§fn from(value: MapExprEntry) -> Self
fn from(value: MapExprEntry) -> Self
Converts to this type from the input type.
Source§impl From<UniquePtr<MapExprEntry>> for MapExprEntry
impl From<UniquePtr<MapExprEntry>> for MapExprEntry
Source§fn from(value: UniquePtr<MapExprEntry>) -> Self
fn from(value: UniquePtr<MapExprEntry>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MapExprEntry
impl RefUnwindSafe for MapExprEntry
impl Send for MapExprEntry
impl Sync for MapExprEntry
impl Unpin for MapExprEntry
impl UnwindSafe for MapExprEntry
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