Struct codeviz_common::Statement
[−]
[src]
pub struct Statement<Var> where
Var: VariableFormat, { pub parts: Vec<Var>, }
A single statement, made up by variables.
Fields
parts: Vec<Var>
Methods
impl<Var> Statement<Var> where
Var: VariableFormat,
[src]
Var: VariableFormat,
fn new() -> Statement<Var>
fn push<V>(&mut self, variable: V) where
V: Into<Var>,
V: Into<Var>,
fn join<A>(self, separator: A) -> Statement<Var> where
A: Into<Var> + Clone,
A: Into<Var> + Clone,
fn format<E>(
&self,
out: &mut E,
depth: usize,
extra: &mut Var::Extra
) -> Result<()> where
E: ElementFormat,
&self,
out: &mut E,
depth: usize,
extra: &mut Var::Extra
) -> Result<()> where
E: ElementFormat,
Trait Implementations
impl<Var: Debug> Debug for Statement<Var> where
Var: VariableFormat,
[src]
Var: VariableFormat,
impl<Var: Clone> Clone for Statement<Var> where
Var: VariableFormat,
[src]
Var: VariableFormat,
fn clone(&self) -> Statement<Var>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a, T, Var> From<&'a T> for Statement<Var> where
T: Into<Statement<Var>> + Clone,
Var: VariableFormat,
[src]
T: Into<Statement<Var>> + Clone,
Var: VariableFormat,
impl<S, Var> From<Vec<S>> for Statement<Var> where
Var: VariableFormat,
S: Into<Var>,
[src]
Var: VariableFormat,
S: Into<Var>,
impl<Var> From<String> for Statement<Var> where
Var: From<String> + VariableFormat,
[src]
Var: From<String> + VariableFormat,