pub struct Experiments { /* private fields */ }Implementations§
Source§impl Experiments
impl Experiments
pub fn new() -> Self
pub fn from_compound(compound: &CompoundTag) -> Result<Self>
pub fn to_compound(&self) -> CompoundTag
pub fn get(&self, key: &str) -> Option<i8>
pub fn set(&mut self, key: impl Into<String>, value: i8) -> Option<i8>
pub fn remove(&mut self, key: &str) -> Option<i8>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&str, i8)>
pub fn iter_known(&self) -> impl Iterator<Item = (&str, i8)>
pub fn iter_unknown(&self) -> impl Iterator<Item = (&str, i8)>
Trait Implementations§
Source§impl Clone for Experiments
impl Clone for Experiments
Source§fn clone(&self) -> Experiments
fn clone(&self) -> Experiments
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Experiments
impl Debug for Experiments
Source§impl Default for Experiments
impl Default for Experiments
Source§fn default() -> Experiments
fn default() -> Experiments
Returns the “default value” for a type. Read more
Source§impl PartialEq for Experiments
impl PartialEq for Experiments
impl Eq for Experiments
impl StructuralPartialEq for Experiments
Auto Trait Implementations§
impl Freeze for Experiments
impl RefUnwindSafe for Experiments
impl Send for Experiments
impl Sync for Experiments
impl Unpin for Experiments
impl UnsafeUnpin for Experiments
impl UnwindSafe for Experiments
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.