Enum DatapackValue
#[non_exhaustive]pub enum DatapackValue {
Bool(bool),
Int(i64),
Float(f64),
Text(String),
}Expand description
A decoded field value. Ids and references are Text, normalised to
namespace:path.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
§impl Clone for DatapackValue
impl Clone for DatapackValue
§fn clone(&self) -> DatapackValue
fn clone(&self) -> DatapackValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DatapackValue
impl Debug for DatapackValue
§impl PartialEq for DatapackValue
impl PartialEq for DatapackValue
impl StructuralPartialEq for DatapackValue
Auto Trait Implementations§
impl Freeze for DatapackValue
impl RefUnwindSafe for DatapackValue
impl Send for DatapackValue
impl Sync for DatapackValue
impl Unpin for DatapackValue
impl UnsafeUnpin for DatapackValue
impl UnwindSafe for DatapackValue
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