pub enum ValueOwn<O: ByteOrder> {
}Variants§
End(())
Byte(i8)
Short(I16<O>)
Int(I32<O>)
Long(I64<O>)
Float(F32<O>)
Double(F64<O>)
ByteArray(VecOwn<i8>)
String(StringOwn)
List(ListOwn<O>)
Compound(CompoundOwn<O>)
IntArray(VecOwn<I32<O>>)
LongArray(VecOwn<I64<O>>)
Implementations§
Source§impl<O: ByteOrder> ValueOwn<O>
impl<O: ByteOrder> ValueOwn<O>
pub fn tag_id(&self) -> TagID
pub fn is_<T: NBT>(&self) -> bool
pub fn get<'a>(&'a self, index: impl Index) -> Option<RefValue<'a, O>>
pub fn get_<'a, T: GenericNBT>( &'a self, index: impl Index, ) -> Option<T::TypeRef<'a, MutableConfig<O>>>
pub fn get_mut<'a>(&'a mut self, index: impl Index) -> Option<MutValue<'a, O>>
pub fn get_mut_<'a, T: GenericNBT>( &'a mut self, index: impl Index, ) -> Option<T::TypeMut<'a, MutableConfig<O>>>
pub fn to_ref<'a>(&'a self) -> RefValue<'a, O>
pub fn to_mut<'a>(&'a mut self) -> MutValue<'a, O>
Trait Implementations§
Source§impl<O: ByteOrder> From<CompoundOwn<O>> for ValueOwn<O>
impl<O: ByteOrder> From<CompoundOwn<O>> for ValueOwn<O>
Source§fn from(value: CompoundOwn<O>) -> Self
fn from(value: CompoundOwn<O>) -> Self
Converts to this type from the input type.
Source§impl<O: ByteOrder, T: NBT> From<TypedListOwn<O, T>> for ValueOwn<O>
impl<O: ByteOrder, T: NBT> From<TypedListOwn<O, T>> for ValueOwn<O>
Source§fn from(value: TypedListOwn<O, T>) -> Self
fn from(value: TypedListOwn<O, T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<O> Freeze for ValueOwn<O>
impl<O> RefUnwindSafe for ValueOwn<O>where
O: RefUnwindSafe,
impl<O> Send for ValueOwn<O>
impl<O> Sync for ValueOwn<O>
impl<O> Unpin for ValueOwn<O>where
O: Unpin,
impl<O> UnwindSafe for ValueOwn<O>where
O: UnwindSafe,
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