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§
source§impl<'buffer> Clone for DirectoryEntry<'buffer>
impl<'buffer> Clone for DirectoryEntry<'buffer>
source§fn clone(&self) -> DirectoryEntry<'buffer>
fn clone(&self) -> DirectoryEntry<'buffer>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'buffer> Debug for DirectoryEntry<'buffer>
impl<'buffer> Debug for DirectoryEntry<'buffer>
source§impl<'buffer, Context> Decode<'buffer, Context> for DirectoryEntry<'buffer>
impl<'buffer, Context> Decode<'buffer, Context> for DirectoryEntry<'buffer>
source§impl<'buffer> Hash for DirectoryEntry<'buffer>
impl<'buffer> Hash for DirectoryEntry<'buffer>
source§impl<'buffer> Ord for DirectoryEntry<'buffer>
impl<'buffer> Ord for DirectoryEntry<'buffer>
source§fn cmp(&self, other: &DirectoryEntry<'buffer>) -> Ordering
fn cmp(&self, other: &DirectoryEntry<'buffer>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'buffer> PartialEq for DirectoryEntry<'buffer>
impl<'buffer> PartialEq for DirectoryEntry<'buffer>
source§fn 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 ==.source§impl<'buffer> PartialOrd for DirectoryEntry<'buffer>
impl<'buffer> PartialOrd for DirectoryEntry<'buffer>
source§fn partial_cmp(&self, other: &DirectoryEntry<'buffer>) -> Option<Ordering>
fn partial_cmp(&self, other: &DirectoryEntry<'buffer>) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl<'buffer> Copy for DirectoryEntry<'buffer>
impl<'buffer> Eq for DirectoryEntry<'buffer>
impl<'buffer> StructuralPartialEq for DirectoryEntry<'buffer>
Auto Trait Implementations§
impl<'buffer> Freeze for DirectoryEntry<'buffer>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more