Enum libradicl::rad_types::RadAtomicId
source · pub enum RadAtomicId {
Int(RadIntId),
Float(RadFloatId),
Bool,
String,
}
Expand description
Variants§
Implementations§
source§impl RadAtomicId
impl RadAtomicId
sourcepub fn size_of(&self) -> usize
pub fn size_of(&self) -> usize
Return the size_of this RadAtomicId in bytes; as with the underlying Rust type, a bool is 1 byte.
Trait Implementations§
source§impl Clone for RadAtomicId
impl Clone for RadAtomicId
source§fn clone(&self) -> RadAtomicId
fn clone(&self) -> RadAtomicId
Returns a copy 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 RadAtomicId
impl Debug for RadAtomicId
source§impl From<RadAtomicId> for u8
impl From<RadAtomicId> for u8
Map from each possible RadAtomicId type to the corresponidng u8 encoding.
source§fn from(x: RadAtomicId) -> Self
fn from(x: RadAtomicId) -> Self
Converts to this type from the input type.
source§impl From<u8> for RadAtomicId
impl From<u8> for RadAtomicId
Map from each possible integer tag to the corresponding RadAtomicId type. This function panics if the provided u8 is not a valid RadAtomicId (i.e. is 7 or > 8).
source§impl PartialEq for RadAtomicId
impl PartialEq for RadAtomicId
source§fn eq(&self, other: &RadAtomicId) -> bool
fn eq(&self, other: &RadAtomicId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RadAtomicId
impl Eq for RadAtomicId
impl StructuralPartialEq for RadAtomicId
Auto Trait Implementations§
impl Freeze for RadAtomicId
impl RefUnwindSafe for RadAtomicId
impl Send for RadAtomicId
impl Sync for RadAtomicId
impl Unpin for RadAtomicId
impl UnwindSafe for RadAtomicId
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more