[−][src]Struct netcdf::group::GroupMut
Mutable access to a group
Implementations
impl<'f> GroupMut<'f>
[src]
pub fn variable_mut<'g>(&'g mut self, name: &str) -> Option<VariableMut<'g>> where
'f: 'g,
[src]
'f: 'g,
Get a mutable variable from the group
pub fn variables_mut<'g>(&'g mut self) -> impl Iterator<Item = VariableMut<'g>> where
'f: 'g,
[src]
'f: 'g,
Iterate over all variables in a group, with mutable access
pub fn group_mut<'g>(&'g mut self, name: &str) -> Option<GroupMut<'g>> where
'f: 'g,
[src]
'f: 'g,
Mutable access to subgroup
pub fn groups_mut<'g>(&'g mut self) -> impl Iterator<Item = GroupMut<'g>> where
'f: 'g,
[src]
'f: 'g,
Iterator over all groups (mutable access)
pub fn add_opaque_type(
&'f mut self,
name: &str,
size: usize
) -> Result<OpaqueType>
[src]
&'f mut self,
name: &str,
size: usize
) -> Result<OpaqueType>
Add an opaque datatype, with size
bytes
pub fn add_vlen_type<T: Numeric>(&'f mut self, name: &str) -> Result<VlenType>
[src]
Add a variable length datatype
pub fn add_enum_type<T: Numeric>(
&'f mut self,
name: &str,
mappings: &[(&str, T)]
) -> Result<EnumType>
[src]
&'f mut self,
name: &str,
mappings: &[(&str, T)]
) -> Result<EnumType>
Add an enum datatype
pub fn add_compound_type(&mut self, name: &str) -> Result<CompoundBuilder>
[src]
Build a compound type
pub fn add_attribute<'a, T>(
&'a mut self,
name: &str,
val: T
) -> Result<Attribute<'a>> where
T: Into<AttrValue>,
[src]
&'a mut self,
name: &str,
val: T
) -> Result<Attribute<'a>> where
T: Into<AttrValue>,
Add an attribute to the group
pub fn add_dimension<'g>(
&'g mut self,
name: &str,
len: usize
) -> Result<Dimension<'g>>
[src]
&'g mut self,
name: &str,
len: usize
) -> Result<Dimension<'g>>
Adds a dimension with the given name and size. A size of zero gives an unlimited dimension
pub fn add_unlimited_dimension<'g>(
&'g mut self,
name: &str
) -> Result<Dimension<'g>>
[src]
&'g mut self,
name: &str
) -> Result<Dimension<'g>>
Adds a dimension with unbounded size
pub fn add_group<'g>(&'g mut self, name: &str) -> Result<GroupMut<'g>> where
'f: 'g,
[src]
'f: 'g,
Add an empty group to the dataset
pub fn add_variable<'g, T>(
&'g mut self,
name: &str,
dims: &[&str]
) -> Result<VariableMut<'g>> where
T: Numeric,
'f: 'g,
[src]
&'g mut self,
name: &str,
dims: &[&str]
) -> Result<VariableMut<'g>> where
T: Numeric,
'f: 'g,
Create a Variable into the dataset, with no data written into it
Dimensions are identified using the name of the dimension, and will recurse upwards if not found in the current group.
pub fn add_string_variable<'g>(
&mut self,
name: &str,
dims: &[&str]
) -> Result<VariableMut<'g>>
[src]
&mut self,
name: &str,
dims: &[&str]
) -> Result<VariableMut<'g>>
Adds a variable with a basic type of string
pub fn add_variable_from_identifiers<'g, T>(
&'g mut self,
name: &str,
dims: &[Identifier]
) -> Result<VariableMut<'g>> where
T: Numeric,
[src]
&'g mut self,
name: &str,
dims: &[Identifier]
) -> Result<VariableMut<'g>> where
T: Numeric,
Adds a variable from a set of unique identifiers, recursing upwards from the current group if necessary.
pub fn add_variable_with_type(
&'f mut self,
name: &str,
dims: &[&str],
typ: &VariableType
) -> Result<VariableMut<'f>>
[src]
&'f mut self,
name: &str,
dims: &[&str],
typ: &VariableType
) -> Result<VariableMut<'f>>
Create a variable with the specified type
Methods from Deref<Target = Group<'f>>
pub fn name(&self) -> String
[src]
Name of the current group
pub fn variable<'g>(&'g self, name: &str) -> Option<Variable<'g>> where
'f: 'g,
[src]
'f: 'g,
Get a variable from the group
pub fn variables<'g>(&'g self) -> impl Iterator<Item = Variable<'g>> where
'f: 'g,
[src]
'f: 'g,
Iterate over all variables in a group
pub fn attribute<'a>(&'a self, name: &str) -> Option<Attribute<'a>>
[src]
Get a single attribute
pub fn attributes(&self) -> impl Iterator<Item = Attribute<'_>>
[src]
Get all attributes in the group
pub fn dimension<'g>(&'g self, name: &str) -> Option<Dimension<'g>> where
'f: 'g,
[src]
'f: 'g,
Get a single dimension
pub fn dimensions<'g>(&'g self) -> impl Iterator<Item = Dimension<'g>> where
'f: 'g,
[src]
'f: 'g,
Iterator over all dimensions
pub fn group<'g>(&'g self, name: &str) -> Option<Group<'g>> where
'f: 'g,
[src]
'f: 'g,
Get a group
pub fn groups<'g>(&'g self) -> impl Iterator<Item = Group<'g>> where
'f: 'g,
[src]
'f: 'g,
Iterator over all subgroups in this group
pub fn types(&self) -> impl Iterator<Item = VariableType>
[src]
Return all types in this group
Trait Implementations
Auto Trait Implementations
impl<'f> RefUnwindSafe for GroupMut<'f>
impl<'f> Send for GroupMut<'f>
impl<'f> Sync for GroupMut<'f>
impl<'f> Unpin for GroupMut<'f>
impl<'f> !UnwindSafe for GroupMut<'f>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
const ALIGN: usize
[src]
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
unsafe fn drop(ptr: usize)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,