Trait OperationArgs

Source
pub trait OperationArgs: Sized {
    // Provided methods
    fn from_args(args: &[Variable]) -> Option<Self> { ... }
    fn as_args(&self) -> Option<Vec<Variable>> { ... }
}
Expand description

A type that represents an operation’s arguments

Provided Methods§

Source

fn from_args(args: &[Variable]) -> Option<Self>

Construct this type from a list of arguments. If not all arguments are Variable, returns None

Source

fn as_args(&self) -> Option<Vec<Variable>>

Turns this type into a flat list of arguments. If not all arguments are Variable, returns None

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§