pub enum MapMut<'s, C: ConfigMut> {
Show 13 variants
End(&'s mut ()),
Byte(&'s mut i8),
Short(&'s mut I16<C::ByteOrder>),
Int(&'s mut I32<C::ByteOrder>),
Long(&'s mut I64<C::ByteOrder>),
Float(&'s mut F32<C::ByteOrder>),
Double(&'s mut F64<C::ByteOrder>),
ByteArray(VecMut<'s, i8>),
String(StringMut<'s>),
List(C::ListMut<'s>),
Compound(C::CompoundMut<'s>),
IntArray(VecMut<'s, I32<C::ByteOrder>>),
LongArray(VecMut<'s, I64<C::ByteOrder>>),
}Expand description
An owned variant for mapping mutable NBT values.
This enum is used by the ValueMut::map method to consume and transform
mutable NBT values. Each variant contains the corresponding mutable NBT type.
§Type Parameters
's- Lifetime of the source dataC- Configuration trait
Variants§
End(&'s mut ())
Byte(&'s mut i8)
Short(&'s mut I16<C::ByteOrder>)
Int(&'s mut I32<C::ByteOrder>)
Long(&'s mut I64<C::ByteOrder>)
Float(&'s mut F32<C::ByteOrder>)
Double(&'s mut F64<C::ByteOrder>)
ByteArray(VecMut<'s, i8>)
String(StringMut<'s>)
List(C::ListMut<'s>)
Compound(C::CompoundMut<'s>)
IntArray(VecMut<'s, I32<C::ByteOrder>>)
LongArray(VecMut<'s, I64<C::ByteOrder>>)
Auto Trait Implementations§
impl<'s, C> Freeze for MapMut<'s, C>
impl<'s, C> RefUnwindSafe for MapMut<'s, C>where
<C as ConfigMut>::ListMut<'s>: RefUnwindSafe,
<C as ConfigMut>::CompoundMut<'s>: RefUnwindSafe,
<C as ConfigRef>::ByteOrder: RefUnwindSafe,
impl<'s, C> Send for MapMut<'s, C>
impl<'s, C> Sync for MapMut<'s, C>
impl<'s, C> Unpin for MapMut<'s, C>
impl<'s, C> !UnwindSafe for MapMut<'s, C>
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