pub struct NodeId(/* private fields */);
Expand description
Represents the compressed public key of a node
Implementations§
source§impl NodeId
impl NodeId
sourcepub fn from_pubkey(pubkey: &PublicKey) -> Self
pub fn from_pubkey(pubkey: &PublicKey) -> Self
Create a new NodeId from a public key
sourcepub fn from_slice(bytes: &[u8]) -> Result<Self, DecodeError>
pub fn from_slice(bytes: &[u8]) -> Result<Self, DecodeError>
Create a new NodeId from a slice of bytes
Trait Implementations§
source§impl Ord for NodeId
impl Ord for NodeId
source§impl PartialEq for NodeId
impl PartialEq for NodeId
source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Writeable for NodeId
impl Writeable for NodeId
impl Copy for NodeId
impl Eq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnwindSafe for NodeId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more