pub struct IndexMetadata(/* private fields */);
Expand description
All of the index metadata fetched through Dat2
from the metadata table.
Implementations§
Source§impl IndexMetadata
impl IndexMetadata
Sourcepub fn from_buffer(buffer: Buffer<Decoded>) -> Result<Self, Error>
pub fn from_buffer(buffer: Buffer<Decoded>) -> Result<Self, Error>
Takes a specific raw metadata buffer and turns it into a IndexMetadata
.
§Errors
If, for what ever reason, the buffer does not exactly adhere to the correct format parsing will fail.
pub fn iter(&self) -> Iter<'_, ArchiveMetadata>
Trait Implementations§
Source§impl Clone for IndexMetadata
impl Clone for IndexMetadata
Source§fn clone(&self) -> IndexMetadata
fn clone(&self) -> IndexMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndexMetadata
impl Debug for IndexMetadata
Source§impl Default for IndexMetadata
impl Default for IndexMetadata
Source§fn default() -> IndexMetadata
fn default() -> IndexMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexMetadata
impl<'de> Deserialize<'de> for IndexMetadata
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 Hash for IndexMetadata
impl Hash for IndexMetadata
Source§impl Index<usize> for IndexMetadata
impl Index<usize> for IndexMetadata
Source§impl<'a> IntoIterator for &'a IndexMetadata
impl<'a> IntoIterator for &'a IndexMetadata
Source§impl IntoIterator for IndexMetadata
impl IntoIterator for IndexMetadata
Source§impl Ord for IndexMetadata
impl Ord for IndexMetadata
Source§fn cmp(&self, other: &IndexMetadata) -> Ordering
fn cmp(&self, other: &IndexMetadata) -> 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 PartialEq for IndexMetadata
impl PartialEq for IndexMetadata
Source§impl PartialOrd for IndexMetadata
impl PartialOrd for IndexMetadata
Source§impl Serialize for IndexMetadata
impl Serialize for IndexMetadata
impl Eq for IndexMetadata
impl StructuralPartialEq for IndexMetadata
Auto Trait Implementations§
impl Freeze for IndexMetadata
impl RefUnwindSafe for IndexMetadata
impl Send for IndexMetadata
impl Sync for IndexMetadata
impl Unpin for IndexMetadata
impl UnwindSafe for IndexMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more