pub struct ConstOperation<'c> { /* private fields */ }
Expand description
A const
operation. Constant op..
A node containing constant data for use as the input to an operation. May hold data in any of the supported data formats.
Implementations§
source§impl<'c> ConstOperation<'c>
impl<'c> ConstOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> ConstOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ConstOperationBuilder<'c, Unset>
Creates a builder.
pub fn output(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn value(&self) -> Result<Attribute<'c>, Error>
pub fn set_value(&mut self, value: Attribute<'c>)
Trait Implementations§
source§impl<'c> From<ConstOperation<'c>> for Operation<'c>
impl<'c> From<ConstOperation<'c>> for Operation<'c>
source§fn from(operation: ConstOperation<'c>) -> Self
fn from(operation: ConstOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ConstOperation<'c>
impl<'c> !Send for ConstOperation<'c>
impl<'c> !Sync for ConstOperation<'c>
impl<'c> Unpin for ConstOperation<'c>
impl<'c> UnwindSafe for ConstOperation<'c>
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