[][src]Struct sf::Id

pub struct Id(_);

Methods

impl Id[src]

pub fn new(ts: u64, wid: u16, seq: u16) -> Self[src]

New Id instance, context need to make sure these limits are satisfied.

Panics

Panics if ts, wid, seq out of limit.

pub fn nil() -> Id[src]

pub fn from_i64(i: i64) -> Self[src]

From_i64 require a positive i64 input, or else returns nil.

pub fn from_slice(b: &[u8]) -> Result<Self, Error>[src]

pub fn as_bytes(self) -> [u8; 8][src]

As bytes Big-Endian.

pub fn is_nil(self) -> bool[src]

Trait Implementations

impl Into<i64> for Id[src]

impl<'a> Into<i64> for &'a Id[src]

impl Into<Id> for i64[src]

impl<'a> Into<Id> for &'a i64[src]

impl Copy for Id[src]

impl PartialEq<Id> for Id[src]

impl Default for Id[src]

impl Clone for Id[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Id[src]

impl Debug for Id[src]

impl LowerHex for Id[src]

impl UpperHex for Id[src]

Auto Trait Implementations

impl Send for Id

impl Sync for Id

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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