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>
[src]
fn push<V>(&mut self, variable: V) where
V: Into<Var>,
[src]
V: Into<Var>,
fn join<A>(self, separator: A) -> Statement<Var> where
A: Into<Var> + Clone,
[src]
A: Into<Var> + Clone,
fn format<E>(
&self,
out: &mut E,
depth: usize,
extra: &mut Var::Extra
) -> Result<()> where
E: ElementFormat,
[src]
&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>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, Var> From<&'a str> for Statement<Var> where
Var: VariableFormat + From<&'a str>,
[src]
Var: VariableFormat + From<&'a str>,
impl<Var> From<String> for Statement<Var> where
Var: VariableFormat + From<String>,
[src]
Var: VariableFormat + From<String>,
impl<S, Var> From<Vec<S>> for Statement<Var> where
Var: VariableFormat,
S: Into<Var>,
[src]
Var: VariableFormat,
S: Into<Var>,