[−][src]Struct sit_core::repository::Record
A record within an item
Trait Implementations
impl<'a> HasPath for Record<'a>
[src]
impl<'a> HasPath for Record<'a>
impl<'a> Record for Record<'a>
[src]
impl<'a> Record for Record<'a>
type Read = File
Implementation's type for reading files
type Str = String
Implementation's type for file names
type Hash = Vec<u8>
Implementation's type for non-encoded hash
type Iter = RecordFileIterator<'a>
Implementation's iterator type for listing files
fn hash(&self) -> Self::Hash
[src]
fn hash(&self) -> Self::Hash
Returns record hash
fn encoded_hash(&self) -> Self::Str
[src]
fn encoded_hash(&self) -> Self::Str
Returns encoded record hash Read more
fn file_iter(&self) -> Self::Iter
[src]
fn file_iter(&self) -> Self::Iter
Returns an iterator over files in the record
fn item_id(&self) -> Self::Str
[src]
fn item_id(&self) -> Self::Str
Returns enclosing item's ID
impl<'a> PartialEq<Record<'a>> for Record<'a>
[src]
impl<'a> PartialEq<Record<'a>> for Record<'a>
fn eq(&self, other: &Record<'a>) -> bool
[src]
fn eq(&self, other: &Record<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> Debug for Record<'a>
[src]
impl<'a> Debug for Record<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Serialize for Record<'a>
[src]
impl<'a> Serialize for Record<'a>
Auto Trait Implementations
Blanket Implementations
impl<T> RecordExt for T where
T: Record,
[src]
impl<T> RecordExt for T where
T: Record,
fn has_type<S: AsRef<str>>(&self, typ: S) -> bool
[src]
fn has_type<S: AsRef<str>>(&self, typ: S) -> bool
fn file<S: AsRef<str>>(&self, file: S) -> Option<Self::Read>
[src]
fn file<S: AsRef<str>>(&self, file: S) -> Option<Self::Read>
fn serde_serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serde_serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self