Struct db_core::ObjectId[][src]

pub struct ObjectId {
    pub file_id: u16,
    pub extent_id: u16,
    pub block_id: u16,
    pub entry_id: u16,
}

object identifier

Fields

file_id: u16extent_id: u16block_id: u16entry_id: u16

Implementations

impl ObjectId[src]

pub fn new() -> Self[src]

pub fn init(file_id: u16, extent_id: u16, block_id: u16, entry_id: u16) -> Self[src]

pub fn obj_bkt(&self, nbkt: usize) -> usize[src]

Calculate bucket for certain number of buckets.

Trait Implementations

impl Clone for ObjectId[src]

impl Copy for ObjectId[src]

impl Debug for ObjectId[src]

impl Eq for ObjectId[src]

impl Hash for ObjectId[src]

impl PartialEq<ObjectId> for ObjectId[src]

impl StructuralEq for ObjectId[src]

impl StructuralPartialEq for ObjectId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.