pub struct ExpressionSpecBuilder { /* private fields */ }
Expand description
Builder for ExpressionSpec
.
Implementations§
Source§impl ExpressionSpecBuilder
impl ExpressionSpecBuilder
pub fn name(&mut self, value: Parameter) -> &mut Self
pub fn params(&mut self, value: Vec<Parameter>) -> &mut Self
pub fn hash(&mut self, value: HashMap<String, Parameter>) -> &mut Self
pub fn block_param(&mut self, value: BlockParam) -> &mut Self
pub fn omit_pre_ws(&mut self, value: bool) -> &mut Self
pub fn omit_pro_ws(&mut self, value: bool) -> &mut Self
Sourcepub fn build(&self) -> Result<ExpressionSpec, ExpressionSpecBuilderError>
pub fn build(&self) -> Result<ExpressionSpec, ExpressionSpecBuilderError>
Trait Implementations§
Source§impl Clone for ExpressionSpecBuilder
impl Clone for ExpressionSpecBuilder
Source§fn clone(&self) -> ExpressionSpecBuilder
fn clone(&self) -> ExpressionSpecBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ExpressionSpecBuilder
impl RefUnwindSafe for ExpressionSpecBuilder
impl Send for ExpressionSpecBuilder
impl Sync for ExpressionSpecBuilder
impl Unpin for ExpressionSpecBuilder
impl UnwindSafe for ExpressionSpecBuilder
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