pub enum List {
}
Available on crate feature
nbt
only.Expand description
Represents any NBT List,
implements serde::Serialize
and serde::Deserialize
Variants§
Empty
A generic length zero list, isn’t bounded by any type
Byte(Vec<i8>)
A list of nameless byte tags
Short(Vec<i16>)
A list of nameless short tags
Int(Vec<i32>)
A list of nameless int tags
Long(Vec<i64>)
A list of nameless long tags
Float(Vec<f32>)
A list of nameless float tags
Double(Vec<f64>)
A list of nameless double tags
ByteArray(Vec<Vec<i8>>)
A list of nameless byte array tags
String(Vec<String>)
A list of nameless string tags
List(Vec<List>)
A list of nameless list tags, each list can hold a different type of tag
Compound(Vec<Compound>)
A list of nameless compound tags
IntArray(Vec<Vec<i32>>)
A list of nameless int array tags
LongArray(Vec<Vec<i64>>)
A list of nameless long array tags
Implementations§
Trait Implementations§
Source§impl<'a> CompoundTryGetInto<&'a List> for &'a Compound
impl<'a> CompoundTryGetInto<&'a List> for &'a Compound
type Error = TagConversionError<'a>
fn try_get_into( self, key: &str, ) -> Result<Option<&'a List>, TagConversionError<'a>>
Source§impl<'a> CompoundTryGetInto<&'a mut List> for &'a mut Compound
impl<'a> CompoundTryGetInto<&'a mut List> for &'a mut Compound
type Error = TagConversionError<'a>
fn try_get_into( self, key: &str, ) -> Result<Option<&'a mut List>, TagConversionError<'a>>
Source§impl<'a> TryInto<&'a [HashMap<String, Tag>]> for &'a List
impl<'a> TryInto<&'a [HashMap<String, Tag>]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [List]> for &'a List
impl<'a> TryInto<&'a [List]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [String]> for &'a List
impl<'a> TryInto<&'a [String]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [f32]> for &'a List
impl<'a> TryInto<&'a [f32]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [f64]> for &'a List
impl<'a> TryInto<&'a [f64]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [i16]> for &'a List
impl<'a> TryInto<&'a [i16]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [i32]> for &'a List
impl<'a> TryInto<&'a [i32]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [i64]> for &'a List
impl<'a> TryInto<&'a [i64]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a [i8]> for &'a List
impl<'a> TryInto<&'a [i8]> for &'a List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a List> for &'a Tag
impl<'a> TryInto<&'a List> for &'a Tag
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [HashMap<String, Tag>]> for &'a mut List
impl<'a> TryInto<&'a mut [HashMap<String, Tag>]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [List]> for &'a mut List
impl<'a> TryInto<&'a mut [List]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [String]> for &'a mut List
impl<'a> TryInto<&'a mut [String]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [f32]> for &'a mut List
impl<'a> TryInto<&'a mut [f32]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [f64]> for &'a mut List
impl<'a> TryInto<&'a mut [f64]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [i16]> for &'a mut List
impl<'a> TryInto<&'a mut [i16]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [i32]> for &'a mut List
impl<'a> TryInto<&'a mut [i32]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [i64]> for &'a mut List
impl<'a> TryInto<&'a mut [i64]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut [i8]> for &'a mut List
impl<'a> TryInto<&'a mut [i8]> for &'a mut List
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<&'a mut List> for &'a mut Tag
impl<'a> TryInto<&'a mut List> for &'a mut Tag
Source§type Error = TagConversionError<'a>
type Error = TagConversionError<'a>
The type returned in the event of a conversion error.
impl StructuralPartialEq for List
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
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