pub struct Rune(pub u128);Tuple Fields§
§0: u128Implementations§
Source§impl Rune
impl Rune
pub const RESERVED: u128 = 6_402_364_363_415_443_603_228_541_259_936_211_926u128
pub fn n(self) -> u128
pub fn first_rune_height(network: Network) -> u32
pub fn minimum_at_height(network: Network, height: Height) -> Self
pub fn unlock_height(self, network: Network) -> Option<Height>
pub fn is_reserved(self) -> bool
pub fn reserved(block: u64, tx: u32) -> Self
pub fn commitment(self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl BorshDeserialize for Rune
impl BorshDeserialize for Rune
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Rune
impl BorshSerialize for Rune
Source§impl<'de> Deserialize<'de> for Rune
impl<'de> Deserialize<'de> for Rune
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Rune
impl Ord for Rune
Source§impl PartialOrd for Rune
impl PartialOrd for Rune
impl Copy for Rune
impl Eq for Rune
impl StructuralPartialEq for Rune
Auto Trait Implementations§
impl Freeze for Rune
impl RefUnwindSafe for Rune
impl Send for Rune
impl Sync for Rune
impl Unpin for Rune
impl UnwindSafe for Rune
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