pub struct SpacedRune {
pub rune: Rune,
pub spacers: u32,
}Fields§
§rune: Rune§spacers: u32Implementations§
Source§impl SpacedRune
impl SpacedRune
pub fn new(rune: Rune, spacers: u32) -> SpacedRune
Trait Implementations§
Source§impl BorshDeserialize for SpacedRune
Available on crate feature borsh only.
impl BorshDeserialize for SpacedRune
Available on crate feature
borsh only.fn deserialize_reader<R>(reader: &mut R) -> Result<SpacedRune, 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 SpacedRune
Available on crate feature borsh only.
impl BorshSerialize for SpacedRune
Available on crate feature
borsh only.Source§impl Clone for SpacedRune
impl Clone for SpacedRune
Source§fn clone(&self) -> SpacedRune
fn clone(&self) -> SpacedRune
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpacedRune
impl Debug for SpacedRune
Source§impl Default for SpacedRune
impl Default for SpacedRune
Source§fn default() -> SpacedRune
fn default() -> SpacedRune
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpacedRune
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SpacedRune
Available on crate feature
serde only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<SpacedRune, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SpacedRune, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SpacedRune
impl Display for SpacedRune
Source§impl FromStr for SpacedRune
impl FromStr for SpacedRune
Source§impl Ord for SpacedRune
impl Ord for SpacedRune
Source§fn cmp(&self, other: &SpacedRune) -> Ordering
fn cmp(&self, other: &SpacedRune) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SpacedRune
impl PartialEq for SpacedRune
Source§impl PartialOrd for SpacedRune
impl PartialOrd for SpacedRune
Source§impl Serialize for SpacedRune
Available on crate feature serde only.
impl Serialize for SpacedRune
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 SpacedRune
impl Eq for SpacedRune
impl StructuralPartialEq for SpacedRune
Auto Trait Implementations§
impl Freeze for SpacedRune
impl RefUnwindSafe for SpacedRune
impl Send for SpacedRune
impl Sync for SpacedRune
impl Unpin for SpacedRune
impl UnwindSafe for SpacedRune
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.