[−][src]Struct hdf5::Location
Named location (file, group, dataset, named datatype).
Implementations
impl Location
[src]
pub fn name(&self) -> String
[src]
Returns the name of the object within the file, or empty string if the object doesn't have a name (e.g., an anonymous dataset).
pub fn filename(&self) -> String
[src]
Returns the name of the file containing the named object (or the file itself).
pub fn file(&self) -> Result<File>
[src]
Returns a handle to the file containing the named object (or the file itself).
pub fn comment(&self) -> Option<String>
[src]
Returns the commment attached to the named object, if any.
pub fn set_comment(&self, comment: &str) -> Result<()>
[src]
Set or the commment attached to the named object.
pub fn clear_comment(&self) -> Result<()>
[src]
Clear the commment attached to the named object.
Methods from Deref<Target = Object>
pub fn id(&self) -> hid_t
[src]
pub fn refcount(&self) -> u32
[src]
Returns reference count if the handle is valid and 0 otherwise.
pub fn is_valid(&self) -> bool
[src]
Returns true
if the object has a valid unlocked identifier (false
for pre-defined
locked identifiers like property list classes).
pub fn id_type(&self) -> H5I_type_t
[src]
Returns type of the object.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl !UnwindSafe for Location
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[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>,