Struct oc_wasm_opencomputers::filesystem::DirectoryEntry
source · [−]pub struct DirectoryEntry<'buffer> {
pub name: &'buffer str,
pub object_type: DirectoryEntryType,
}Expand description
A directory entry.
Fields
name: &'buffer strThe name of the object.
object_type: DirectoryEntryTypeThe type of the object.
Trait Implementations
sourceimpl<'buffer> Clone for DirectoryEntry<'buffer>
impl<'buffer> Clone for DirectoryEntry<'buffer>
sourcefn clone(&self) -> DirectoryEntry<'buffer>
fn clone(&self) -> DirectoryEntry<'buffer>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'buffer> Debug for DirectoryEntry<'buffer>
impl<'buffer> Debug for DirectoryEntry<'buffer>
sourceimpl<'buffer> Decode<'buffer> for DirectoryEntry<'buffer>
impl<'buffer> Decode<'buffer> for DirectoryEntry<'buffer>
sourceimpl<'buffer> Hash for DirectoryEntry<'buffer>
impl<'buffer> Hash for DirectoryEntry<'buffer>
sourceimpl<'buffer> Ord for DirectoryEntry<'buffer>
impl<'buffer> Ord for DirectoryEntry<'buffer>
sourceimpl<'buffer> PartialEq<DirectoryEntry<'buffer>> for DirectoryEntry<'buffer>
impl<'buffer> PartialEq<DirectoryEntry<'buffer>> for DirectoryEntry<'buffer>
sourcefn eq(&self, other: &DirectoryEntry<'buffer>) -> bool
fn eq(&self, other: &DirectoryEntry<'buffer>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DirectoryEntry<'buffer>) -> bool
fn ne(&self, other: &DirectoryEntry<'buffer>) -> bool
This method tests for !=.
sourceimpl<'buffer> PartialOrd<DirectoryEntry<'buffer>> for DirectoryEntry<'buffer>
impl<'buffer> PartialOrd<DirectoryEntry<'buffer>> for DirectoryEntry<'buffer>
sourcefn partial_cmp(&self, other: &DirectoryEntry<'buffer>) -> Option<Ordering>
fn partial_cmp(&self, other: &DirectoryEntry<'buffer>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<'buffer> Copy for DirectoryEntry<'buffer>
impl<'buffer> Eq for DirectoryEntry<'buffer>
impl<'buffer> StructuralEq for DirectoryEntry<'buffer>
impl<'buffer> StructuralPartialEq for DirectoryEntry<'buffer>
Auto Trait Implementations
impl<'buffer> RefUnwindSafe for DirectoryEntry<'buffer>
impl<'buffer> Send for DirectoryEntry<'buffer>
impl<'buffer> Sync for DirectoryEntry<'buffer>
impl<'buffer> Unpin for DirectoryEntry<'buffer>
impl<'buffer> UnwindSafe for DirectoryEntry<'buffer>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more