pub struct PrintVariables {
pub variables: Vec<Field>,
pub attrs: Vec<(VariableAttr, State)>,
pub scope: Scope,
}Expand description
Set of information to print variables
Fields§
§variables: Vec<Field>Names of the variables to be printed
If empty, all variables are printed.
attrs: Vec<(VariableAttr, State)>Attributes to select the variables to be printed
scope: ScopeScope in which the variables are printed
Implementations§
Source§impl PrintVariables
impl PrintVariables
Sourcepub fn execute(
self,
variables: &VariableSet,
context: &PrintContext<'_>,
) -> Result<String, Vec<ExecuteError>>
pub fn execute( self, variables: &VariableSet, context: &PrintContext<'_>, ) -> Result<String, Vec<ExecuteError>>
Executes the command.
Trait Implementations§
Source§impl Clone for PrintVariables
impl Clone for PrintVariables
Source§fn clone(&self) -> PrintVariables
fn clone(&self) -> PrintVariables
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 PrintVariables
impl Debug for PrintVariables
Source§impl From<PrintVariables> for Command
impl From<PrintVariables> for Command
Source§fn from(v: PrintVariables) -> Self
fn from(v: PrintVariables) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrintVariables
impl PartialEq for PrintVariables
impl Eq for PrintVariables
impl StructuralPartialEq for PrintVariables
Auto Trait Implementations§
impl Freeze for PrintVariables
impl !RefUnwindSafe for PrintVariables
impl !Send for PrintVariables
impl !Sync for PrintVariables
impl Unpin for PrintVariables
impl UnsafeUnpin for PrintVariables
impl !UnwindSafe for PrintVariables
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