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 PartialOrd for NodeId
impl PartialOrd for NodeId
Source§impl Writeable for NodeId
impl Writeable for NodeId
impl Copy for NodeId
impl Eq for NodeId
impl StructuralPartialEq 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