pub struct Inode(pub L64);
Expand description
A unique identifier for files or directories in the actual file system, to map “files from the graph” to real files.
Tuple Fields§
§0: L64
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Inode
impl<'de> Deserialize<'de> for Inode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Inode
impl Ord for Inode
source§impl PartialEq<Inode> for Inode
impl PartialEq<Inode> for Inode
source§impl PartialOrd<Inode> for Inode
impl PartialOrd<Inode> for Inode
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 moresource§impl Storable for Inode
impl Storable for Inode
§type PageReferences = Empty<u64>
type PageReferences = Empty<u64>
An iterator over the offsets to pages contained in this
value. Only values from this crate can generate non-empty
iterators, but combined values (like tuples) must chain the
iterators returned by method
page_offsets
.source§fn page_references(&self) -> Self::PageReferences
fn page_references(&self) -> Self::PageReferences
If this value is an offset to another page at offset
offset
,
return Some(offset)
. Return None
else.source§impl UnsizedStorable for Inode
impl UnsizedStorable for Inode
source§fn size(&self) -> usize
fn size(&self) -> usize
If Self::SIZE.is_some()
, this must return the same
value. The default implementation is Self;:SIZE.unwrap()
.
source§unsafe fn write_to_page(&self, p: *mut u8)
unsafe fn write_to_page(&self, p: *mut u8)
Write to a page. Must not overwrite the allocated size, but this isn’t checked (which is why it’s unsafe).