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) -> Rune
pub fn unlock_height(self, network: Network) -> Option<Height>
pub fn is_reserved(self) -> bool
pub fn reserved(block: u64, tx: u32) -> Rune
pub fn commitment(self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl BorshDeserialize for Rune
Available on crate feature borsh only.
impl BorshDeserialize for Rune
Available on crate feature
borsh only.fn deserialize_reader<R>(reader: &mut R) -> Result<Rune, Error>where
R: Read,
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
Available on crate feature borsh only.
impl BorshSerialize for Rune
Available on crate feature
borsh only.Source§impl<'de> Deserialize<'de> for Rune
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Rune
Available on crate feature
serde only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<Rune, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Rune, <D as Deserializer<'de>>::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
Source§impl Serialize for Rune
Available on crate feature serde only.
impl Serialize for Rune
Available on crate feature
serde only.Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.