pub struct LabelsBuilder { /* private fields */ }
Expand description
Builder for Labels
Implementations§
Source§impl LabelsBuilder
impl LabelsBuilder
Sourcepub fn new(names: Vec<&str>) -> LabelsBuilder
pub fn new(names: Vec<&str>) -> LabelsBuilder
Create a new empty LabelsBuilder
with the given names
Sourcepub fn reserve(&mut self, additional: usize)
pub fn reserve(&mut self, additional: usize)
Reserve space for additional
other entries in the labels.
Trait Implementations§
Source§impl Clone for LabelsBuilder
impl Clone for LabelsBuilder
Source§fn clone(&self) -> LabelsBuilder
fn clone(&self) -> LabelsBuilder
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 LabelsBuilder
impl RefUnwindSafe for LabelsBuilder
impl Send for LabelsBuilder
impl Sync for LabelsBuilder
impl Unpin for LabelsBuilder
impl UnwindSafe for LabelsBuilder
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