Skip to main content

SerializedRemote

Struct SerializedRemote 

Source
pub struct SerializedRemote { /* private fields */ }

Trait Implementations§

Source§

impl Check for SerializedRemote

Source§

fn add_refs<T>( &self, _txn: &T, _refs: &mut BTreeMap<u64, usize>, ) -> Result<(), <T as LoadPage>::Error>
where T: LoadPage, <T as LoadPage>::Error: Debug,

Source§

impl Debug for SerializedRemote

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SerializedRemote

Source§

impl Ord for SerializedRemote

Source§

fn cmp(&self, other: &SerializedRemote) -> Ordering

This method returns an Ordering between self and other. Read more
Source§

impl PartialEq for SerializedRemote

Source§

fn eq(&self, other: &SerializedRemote) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for SerializedRemote

Source§

fn partial_cmp(&self, other: &SerializedRemote) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Storable for SerializedRemote

Source§

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

If this value is an offset to another page at offset offset, return Some(offset). Return None else.
Source§

fn compare<T: LoadPage>(&self, _t: &T, b: &Self) -> Ordering

This is required for B trees, not necessarily for other structures. The default implementation panics.
Source§

unsafe fn drop<T>(&self, txn: &mut T) -> Result<(), <T as LoadPage>::Error>
where T: AllocPage,

If this value is an offset to another page at offset offset, return Some(offset). Return None else. Read more
Source§

impl StructuralPartialEq for SerializedRemote

Source§

impl UnsizedStorable for SerializedRemote

Source§

const ALIGN: usize = 8

Source§

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 onpage_size(p: *const u8) -> usize

Read the size from an on-page entry. If Self::SIZE.is_some() this must be the same value.
Source§

unsafe fn from_raw_ptr<'a, T>(_: &T, p: *const u8) -> &'a Self

Source§

unsafe fn write_to_page_alloc<T: AllocPage>(&self, _: &mut T, p: *mut u8)

Write to a page. Must not overwrite the allocated size, but this isn’t checked (which is why it’s unsafe). Read more
Source§

unsafe fn write_to_page(&self, _: *mut u8)

Write to a page. Must not overwrite the allocated size, but this isn’t checked (which is why it’s unsafe).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more