pub struct KeyValue {
pub key: Rc<str>,
pub value: Expression,
pub guard: Option<Expression>,
}Expand description
An entry of a dictionary expression.
Fields§
§key: Rc<str>The string value associated with the Ryan value.
value: ExpressionThe expression that evaluates to the value of this association.
guard: Option<Expression>An optional if guard. If the supplied expression evaluates to false, the
current key-value pair is not inserted in the final dictionary.
Trait Implementations§
impl StructuralPartialEq for KeyValue
Auto Trait Implementations§
impl !Send for KeyValue
impl !Sync for KeyValue
impl Freeze for KeyValue
impl RefUnwindSafe for KeyValue
impl Unpin for KeyValue
impl UnsafeUnpin for KeyValue
impl UnwindSafe for KeyValue
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