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<Expr> for PartialValue
impl From<Expr> 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 for PartialValue
impl PartialEq for PartialValue
source§impl TryFrom<PartialValue> for Value
impl TryFrom<PartialValue> for Value
impl StructuralPartialEq for PartialValue
Auto Trait Implementations§
impl Freeze for PartialValue
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
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