Struct metatensor::LabelsBuilder
source · 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 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