pub struct VariableBuilder { /* private fields */ }
Expand description
Builder for Variable
.
Implementations§
Source§impl VariableBuilder
impl VariableBuilder
pub fn scope(&mut self, value: Vec<Scope>) -> &mut Self
pub fn var_type(&mut self, value: VarType) -> &mut Self
pub fn bit_width(&mut self, value: usize) -> &mut Self
pub fn ascii_identifier(&mut self, value: String) -> &mut Self
pub fn reference(&mut self, value: String) -> &mut Self
Trait Implementations§
Source§impl Clone for VariableBuilder
impl Clone for VariableBuilder
Source§fn clone(&self) -> VariableBuilder
fn clone(&self) -> VariableBuilder
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 moreSource§impl Default for VariableBuilder
impl Default for VariableBuilder
Source§fn default() -> VariableBuilder
fn default() -> VariableBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VariableBuilder
impl RefUnwindSafe for VariableBuilder
impl Send for VariableBuilder
impl Sync for VariableBuilder
impl Unpin for VariableBuilder
impl UnwindSafe for VariableBuilder
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