[−][src]Struct netcdf::file::File
Read only accessible file
Methods
impl File
[src]
pub fn path(&self) -> Result<String>
[src]
path used to open/create the file
#Errors
Netcdf layer could fail, or the resulting path could contain an invalid UTF8 sequence
pub fn root(&self) -> Option<Group>
[src]
Main entrypoint for interacting with the netcdf file.
pub fn variable<'f>(&'f self, name: &str) -> Option<Variable<'f>>
[src]
Get a variable from the group
pub fn variables(&self) -> impl Iterator<Item = Variable>
[src]
Iterate over all variables in a group
pub fn attribute<'f>(&'f self, name: &str) -> Option<Attribute<'f>>
[src]
Get a single attribute
pub fn attributes(&self) -> impl Iterator<Item = Attribute>
[src]
Get all attributes in the root group
pub fn dimension<'f>(&self, name: &str) -> Option<Dimension<'f>>
[src]
Get a single dimension
pub fn dimensions(&self) -> impl Iterator<Item = Dimension>
[src]
Iterator over all dimensions in the root group
pub fn group<'f>(&'f self, name: &str) -> Result<Option<Group<'f>>>
[src]
pub fn groups<'f>(&'f self) -> Result<impl Iterator<Item = Group<'f>>>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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, 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>,