pub struct AttrBuilder<'a, T> { /* private fields */ }Expand description
A fluent builder for creating attributes on datasets.
Obtained from H5Dataset::new_attr::<T>().
Implementations§
Source§impl<'a, T> AttrBuilder<'a, T>
impl<'a, T> AttrBuilder<'a, T>
Sourcepub fn shape<S>(self, _shape: S) -> Self
pub fn shape<S>(self, _shape: S) -> Self
Set the attribute shape. Use () for a scalar attribute.
Sourcepub fn create(self, name: &str) -> Result<H5Attribute>
pub fn create(self, name: &str) -> Result<H5Attribute>
Create the attribute with the given name.
The attribute is created but does not yet have a value.
Call H5Attribute::write_scalar to set the value.
Auto Trait Implementations§
impl<'a, T> Freeze for AttrBuilder<'a, T>
impl<'a, T> !RefUnwindSafe for AttrBuilder<'a, T>
impl<'a, T> !Send for AttrBuilder<'a, T>
impl<'a, T> !Sync for AttrBuilder<'a, T>
impl<'a, T> Unpin for AttrBuilder<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for AttrBuilder<'a, T>
impl<'a, T> !UnwindSafe for AttrBuilder<'a, T>
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