pub struct ExtensionValueWithArgs { /* private fields */ }Expand description
Object container for extension values, also stores the constructor-and-args
that can reproduce the value (important for converting the value back to
RestrictedExpr for instance)
Implementations§
Source§impl ExtensionValueWithArgs
impl ExtensionValueWithArgs
Sourcepub fn new(
value: Arc<dyn InternalExtensionValue + Send + Sync>,
constructor: Name,
args: Vec<RestrictedExpr>,
) -> Self
pub fn new( value: Arc<dyn InternalExtensionValue + Send + Sync>, constructor: Name, args: Vec<RestrictedExpr>, ) -> Self
Create a new ExtensionValueWithArgs
Sourcepub fn value(&self) -> &dyn InternalExtensionValue
pub fn value(&self) -> &dyn InternalExtensionValue
Get the internal value
Sourcepub fn constructor_and_args(&self) -> (&Name, &[RestrictedExpr])
pub fn constructor_and_args(&self) -> (&Name, &[RestrictedExpr])
Get the constructor and args that can reproduce this value
Trait Implementations§
Source§impl Clone for ExtensionValueWithArgs
impl Clone for ExtensionValueWithArgs
Source§fn clone(&self) -> ExtensionValueWithArgs
fn clone(&self) -> ExtensionValueWithArgs
Returns a duplicate 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 ExtensionValueWithArgs
impl Debug for ExtensionValueWithArgs
Source§impl Display for ExtensionValueWithArgs
impl Display for ExtensionValueWithArgs
Source§impl From<ExtensionValueWithArgs> for Expr
impl From<ExtensionValueWithArgs> for Expr
Source§fn from(val: ExtensionValueWithArgs) -> Self
fn from(val: ExtensionValueWithArgs) -> Self
Converts to this type from the input type.
Source§impl Ord for ExtensionValueWithArgs
impl Ord for ExtensionValueWithArgs
Source§impl PartialEq for ExtensionValueWithArgs
impl PartialEq for ExtensionValueWithArgs
Source§impl PartialOrd for ExtensionValueWithArgs
impl PartialOrd for ExtensionValueWithArgs
impl Eq for ExtensionValueWithArgs
Auto Trait Implementations§
impl Freeze for ExtensionValueWithArgs
impl RefUnwindSafe for ExtensionValueWithArgs
impl Send for ExtensionValueWithArgs
impl Sync for ExtensionValueWithArgs
impl Unpin for ExtensionValueWithArgs
impl UnwindSafe for ExtensionValueWithArgs
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§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