[][src]Struct cannyls::storage::Address

pub struct Address(_);

ストレージ内のアドレス表現に使われている40bit幅の整数値.

アドレスの単位は、以下のように使用箇所によって異なっている:

  • ジャーナル領域: バイト単位
  • データ領域: ブロック単位

Implementations

impl Address[src]

pub const MAX: u64[src]

取り得るアドレスの最大値.

pub fn as_u64(self) -> u64[src]

アドレスの値を返す.

pub fn from_u64(value: u64) -> Option<Self>[src]

valueを対応する位置のアドレスに変換する.

valueの値が40bit以内に収まらない場合にはNoneが返される.

Trait Implementations

impl Add<Address> for Address[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Address[src]

impl Copy for Address[src]

impl Debug for Address[src]

impl Eq for Address[src]

impl From<u32> for Address[src]

impl Hash for Address[src]

impl Ord for Address[src]

impl PartialEq<Address> for Address[src]

impl PartialOrd<Address> for Address[src]

impl StructuralEq for Address[src]

impl StructuralPartialEq for Address[src]

impl Sub<Address> for Address[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Address

impl Send for Address

impl Sync for Address

impl Unpin for Address

impl UnwindSafe for Address

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.