[][src]Struct netcdf::file::File

pub struct File(_);

Read only accessible file

Implementations

impl File[src]

pub fn path(&self) -> Result<PathBuf>[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]

Get a group

Errors

Not a netCDF-4 file

pub fn groups<'f>(&'f self) -> Result<impl Iterator<Item = Group<'f>>>[src]

Iterator over all subgroups in the root group

Errors

Not a netCDF-4 file

pub fn types(&self) -> Result<impl Iterator<Item = VariableType>>[src]

Return all types in the root group

Trait Implementations

impl Debug for File[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.