Struct hotdrink_rs::builders::component_builder::ComponentBuilder [−][src]
pub struct ComponentBuilder<T> { /* fields omitted */ }
A builder for making programmatic construction of components easier.
Implementations
impl<T> ComponentBuilder<T>
[src]
impl<T> ComponentBuilder<T>
[src]pub fn new<S: Into<String>>(name: S) -> Self
[src]
Constructs a new ComponentBuilder
with no variables or constraints.
pub fn variable<S: Into<String>>(self, name: S, value: T) -> Self
[src]
Adds an immutable variable.
pub fn variable_mut<S: Into<String>>(self, name: S, value: T) -> Self
[src]
Adds a mutable variable.
pub fn variables<S: Into<String>>(self, variables: Vec<(S, T)>) -> Self
[src]
Adds immutable variables.
pub fn variables_mut<S: Into<String>>(self, variables: Vec<(S, T)>) -> Self
[src]
Adds mutable variables.
pub fn constraint(self, constraint: ConstraintBuilder<T>) -> Self
[src]
Adds a constraint.
Trait Implementations
impl<T: Clone> Clone for ComponentBuilder<T>
[src]
impl<T: Clone> Clone for ComponentBuilder<T>
[src]fn clone(&self) -> ComponentBuilder<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for ComponentBuilder<T>
impl<T> !RefUnwindSafe for ComponentBuilder<T>
impl<T> !Send for ComponentBuilder<T>
impl<T> !Send for ComponentBuilder<T>
impl<T> !Sync for ComponentBuilder<T>
impl<T> !Sync for ComponentBuilder<T>
impl<T> Unpin for ComponentBuilder<T>
impl<T> Unpin for ComponentBuilder<T>
impl<T> !UnwindSafe for ComponentBuilder<T>
impl<T> !UnwindSafe for ComponentBuilder<T>