Enum cedar_policy_core::ast::PartialValue
source · pub enum PartialValue {
Value(Value),
Residual(Expr),
}
Expand description
Intermediate results of partial evaluation
Variants§
Value(Value)
Fully evaluated values
Residual(Expr)
Residual expressions containing unknowns INVARIANT: A residual must have an unknown contained within
Trait Implementations§
source§impl Clone for PartialValue
impl Clone for PartialValue
source§fn clone(&self) -> PartialValue
fn clone(&self) -> PartialValue
Returns a copy 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 PartialValue
impl Debug for PartialValue
source§impl Display for PartialValue
impl Display for PartialValue
source§impl From<PartialValue> for Expr
impl From<PartialValue> for Expr
source§fn from(val: PartialValue) -> Self
fn from(val: PartialValue) -> Self
Converts to this type from the input type.
source§impl PartialEq<PartialValue> for PartialValue
impl PartialEq<PartialValue> for PartialValue
source§fn eq(&self, other: &PartialValue) -> bool
fn eq(&self, other: &PartialValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<PartialValue> for Value
impl TryFrom<PartialValue> for Value
impl StructuralPartialEq for PartialValue
Auto Trait Implementations§
impl !RefUnwindSafe for PartialValue
impl !Send for PartialValue
impl !Sync for PartialValue
impl Unpin for PartialValue
impl !UnwindSafe for PartialValue
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