[−][src]Struct nbt::CompoundTag
Implementations
impl CompoundTag
[src]
pub fn new() -> Self
[src]
pub fn set_i8(&mut self, name: &str, value: i8)
[src]
pub fn get_i8<'a>(&self, name: &'a str) -> Result<i8, TagError<'a>>
[src]
pub fn set_i16(&mut self, name: &str, value: i16)
[src]
pub fn get_i16<'a>(&self, name: &'a str) -> Result<i16, TagError<'a>>
[src]
pub fn set_i32(&mut self, name: &str, value: i32)
[src]
pub fn get_i32<'a>(&self, name: &'a str) -> Result<i32, TagError<'a>>
[src]
pub fn set_i64(&mut self, name: &str, value: i64)
[src]
pub fn get_i64<'a>(&self, name: &'a str) -> Result<i64, TagError<'a>>
[src]
pub fn set_f32(&mut self, name: &str, value: f32)
[src]
pub fn get_f32<'a>(&self, name: &'a str) -> Result<f32, TagError<'a>>
[src]
pub fn set_f64(&mut self, name: &str, value: f64)
[src]
pub fn get_f64<'a>(&self, name: &'a str) -> Result<f64, TagError<'a>>
[src]
pub fn set_i8_vec(&mut self, name: &str, value: Vec<i8>)
[src]
pub fn get_i8_vec<'a>(&self, name: &'a str) -> Result<&Vec<i8>, TagError<'a>>
[src]
pub fn set_i32_vec(&mut self, name: &str, value: Vec<i32>)
[src]
pub fn get_i32_vec<'a>(&self, name: &'a str) -> Result<&Vec<i32>, TagError<'a>>
[src]
pub fn set_i64_vec(&mut self, name: &str, value: Vec<i64>)
[src]
pub fn get_i64_vec<'a>(&self, name: &'a str) -> Result<&Vec<i64>, TagError<'a>>
[src]
pub fn set_bool(&mut self, name: &str, value: bool)
[src]
pub fn get_bool<'a>(&self, name: &'a str) -> Result<bool, TagError<'a>>
[src]
pub fn set_str(&mut self, name: &str, value: &str)
[src]
pub fn get_str<'a>(&self, name: &'a str) -> Result<String, TagError<'a>>
[src]
pub fn set_compound_tag(&mut self, name: &str, value: CompoundTag)
[src]
pub fn get_compound_tag<'a>(
&self,
name: &'a str
) -> Result<&CompoundTag, TagError<'a>>
[src]
&self,
name: &'a str
) -> Result<&CompoundTag, TagError<'a>>
pub fn set_str_vec(&mut self, name: &str, vec: Vec<&str>)
[src]
pub fn get_str_vec<'a>(&self, name: &'a str) -> Result<Vec<&str>, TagError<'a>>
[src]
pub fn set_compound_tag_vec(&mut self, name: &str, vec: Vec<CompoundTag>)
[src]
pub fn get_compound_tag_vec<'a>(
&self,
name: &'a str
) -> Result<Vec<&CompoundTag>, TagError<'a>>
[src]
&self,
name: &'a str
) -> Result<Vec<&CompoundTag>, TagError<'a>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CompoundTag
impl Send for CompoundTag
impl Sync for CompoundTag
impl Unpin for CompoundTag
impl UnwindSafe for CompoundTag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,