[−][src]Struct lnpbp::short_id::ShortId
Implementations
impl ShortId
[src]
pub const FLAG_OFFCHAIN: u64
[src]
pub const MASK_BLOCK: u64
[src]
pub const MASK_BLOCKCHECK: u64
[src]
pub const MASK_TXIDX: u64
[src]
pub const MASK_TXCHECK: u64
[src]
pub const FLAG_INOUT: u64
[src]
pub const MASK_INOUT: u64
[src]
pub const SHIFT_BLOCK: u64
[src]
pub const SHIFT_BLOCKCHECK: u64
[src]
pub const SHIFT_TXIDX: u64
[src]
pub fn is_onchain(&self) -> bool
[src]
pub fn is_offchain(&self) -> bool
[src]
pub fn get_descriptor(&self) -> Descriptor
[src]
pub fn into_u64(self) -> u64
[src]
Trait Implementations
impl Clone for ShortId
[src]
impl Copy for ShortId
[src]
impl Debug for ShortId
[src]
impl Display for ShortId
[src]
impl Eq for ShortId
[src]
impl From<ShortId> for Descriptor
[src]
impl From<u64> for ShortId
[src]
impl Hash for ShortId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ShortId
[src]
fn cmp(&self, other: &ShortId) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ShortId> for ShortId
[src]
impl PartialOrd<ShortId> for ShortId
[src]
fn partial_cmp(&self, other: &ShortId) -> Option<Ordering>
[src]
fn lt(&self, other: &ShortId) -> bool
[src]
fn le(&self, other: &ShortId) -> bool
[src]
fn gt(&self, other: &ShortId) -> bool
[src]
fn ge(&self, other: &ShortId) -> bool
[src]
impl StrictDecode for ShortId
[src]
fn strict_decode<D: Read>(mut d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for ShortId
[src]
fn strict_encode<E: Write>(&self, mut e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl StructuralEq for ShortId
[src]
impl StructuralPartialEq for ShortId
[src]
impl TryFrom<Descriptor> for ShortId
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShortId
[src]
impl Send for ShortId
[src]
impl Sync for ShortId
[src]
impl Unpin for ShortId
[src]
impl UnwindSafe for ShortId
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,