[−][src]Struct sf::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 PartialEq<Id> for Id
[src]
impl Eq for Id
[src]
impl Clone for Id
[src]
fn clone(&self) -> Id
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Id
[src]
impl Copy for Id
[src]
impl Debug for Id
[src]
impl LowerHex for Id
[src]
impl UpperHex for Id
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,