pub struct UnresolvedMosaicId(pub u64);Expand description
まだ解決していないモザイクの ID。モザイクの ID か、モザイクに紐づけたネームスペースの ID のどちらか。 最上位ビットが1ならネームスペース。
Tuple Fields§
§0: u64Implementations§
Source§impl UnresolvedMosaicId
impl UnresolvedMosaicId
Sourcepub fn namespace_id(self) -> Option<NamespaceId>
pub fn namespace_id(self) -> Option<NamespaceId>
ネームスペースを指していれば、その ID。catapult の addMosaicResolver と同じく、最上位ビットで見分ける。
Trait Implementations§
Source§impl Clone for UnresolvedMosaicId
impl Clone for UnresolvedMosaicId
Source§fn clone(&self) -> UnresolvedMosaicId
fn clone(&self) -> UnresolvedMosaicId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnresolvedMosaicId
Source§impl Debug for UnresolvedMosaicId
impl Debug for UnresolvedMosaicId
impl Eq for UnresolvedMosaicId
Source§impl From<MosaicId> for UnresolvedMosaicId
impl From<MosaicId> for UnresolvedMosaicId
Source§impl From<NamespaceId> for UnresolvedMosaicId
impl From<NamespaceId> for UnresolvedMosaicId
Source§fn from(id: NamespaceId) -> Self
fn from(id: NamespaceId) -> Self
Converts to this type from the input type.
Source§impl Hash for UnresolvedMosaicId
impl Hash for UnresolvedMosaicId
Source§impl Ord for UnresolvedMosaicId
impl Ord for UnresolvedMosaicId
Source§fn cmp(&self, other: &UnresolvedMosaicId) -> Ordering
fn cmp(&self, other: &UnresolvedMosaicId) -> Ordering
1.21.0 (const: unstable) · 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 UnresolvedMosaicId
impl PartialEq for UnresolvedMosaicId
Source§impl PartialOrd for UnresolvedMosaicId
impl PartialOrd for UnresolvedMosaicId
impl StructuralPartialEq for UnresolvedMosaicId
Auto Trait Implementations§
impl Freeze for UnresolvedMosaicId
impl RefUnwindSafe for UnresolvedMosaicId
impl Send for UnresolvedMosaicId
impl Sync for UnresolvedMosaicId
impl Unpin for UnresolvedMosaicId
impl UnsafeUnpin for UnresolvedMosaicId
impl UnwindSafe for UnresolvedMosaicId
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