Struct libpijul::pristine::SerializedEdge
source · pub struct SerializedEdge(_);
Expand description
The target half of an edge in the repository graph.
Implementations§
Trait Implementations§
source§impl Check for SerializedEdge
impl Check for SerializedEdge
source§impl Clone for SerializedEdge
impl Clone for SerializedEdge
source§fn clone(&self) -> SerializedEdge
fn clone(&self) -> SerializedEdge
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 Debug for SerializedEdge
impl Debug for SerializedEdge
source§impl Hash for SerializedEdge
impl Hash for SerializedEdge
source§impl Ord for SerializedEdge
impl Ord for SerializedEdge
source§fn cmp(&self, other: &SerializedEdge) -> Ordering
fn cmp(&self, other: &SerializedEdge) -> 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<SerializedEdge> for SerializedEdge
impl PartialEq<SerializedEdge> for SerializedEdge
source§fn eq(&self, other: &SerializedEdge) -> bool
fn eq(&self, other: &SerializedEdge) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SerializedEdge> for SerializedEdge
impl PartialOrd<SerializedEdge> for SerializedEdge
source§fn partial_cmp(&self, other: &SerializedEdge) -> Option<Ordering>
fn partial_cmp(&self, other: &SerializedEdge) -> 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 moresource§impl Storable for SerializedEdge
impl Storable for SerializedEdge
§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 SubAssign<EdgeFlags> for SerializedEdge
impl SubAssign<EdgeFlags> for SerializedEdge
source§fn sub_assign(&mut self, e: EdgeFlags)
fn sub_assign(&mut self, e: EdgeFlags)
Performs the
-=
operation. Read moresource§impl UnsizedStorable for SerializedEdge
impl UnsizedStorable for SerializedEdge
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).
const ALIGN: usize = 4usize
unsafe fn from_raw_ptr<'a, T>(_: &T, p: *const u8) -> &'a Self
impl Copy for SerializedEdge
impl Eq for SerializedEdge
impl StructuralEq for SerializedEdge
impl StructuralPartialEq for SerializedEdge
Auto Trait Implementations§
impl RefUnwindSafe for SerializedEdge
impl Send for SerializedEdge
impl Sync for SerializedEdge
impl Unpin for SerializedEdge
impl UnwindSafe for SerializedEdge
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