pub struct Todo;Expand description
A placeholder type for unimplemented component values.
Unlike (), this is a distinct type that can have its own trait implementations.
Trait Implementations§
impl Copy for Todo
impl Eq for Todo
Source§impl FromNbtTag for Todo
impl FromNbtTag for Todo
fn from_nbt_tag(_tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl HashComponent for Todo
impl HashComponent for Todo
Source§fn hash_component(&self, hasher: &mut ComponentHasher)
fn hash_component(&self, hasher: &mut ComponentHasher)
Hashes this value into the given hasher.
Source§fn compute_hash(&self) -> i32
fn compute_hash(&self) -> i32
Computes the hash of this value.
impl StructuralPartialEq for Todo
Source§impl ToNbtTag for Todo
impl ToNbtTag for Todo
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for Todo
impl RefUnwindSafe for Todo
impl Send for Todo
impl Sync for Todo
impl Unpin for Todo
impl UnsafeUnpin for Todo
impl UnwindSafe for Todo
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.