Enum bones_schema::ptr::PrimitiveRef
source · pub enum PrimitiveRef<'a> {
}
Expand description
Helper for accessing the inner data of a schema ref at runtime.
Variants§
Bool(&'a bool)
A bool
U8(&'a u8)
A u8
U16(&'a u16)
A u16
U32(&'a u32)
A u32
U64(&'a u64)
A u64
U128(&'a u128)
A u128
I8(&'a i8)
An i8
I16(&'a i16)
An i16
I32(&'a i32)
An i32
I64(&'a i64)
An i64
I128(&'a i128)
An i128
F32(&'a f32)
An f32
F64(&'a f64)
An f64
String(&'a String)
A String
Opaque
An opaque type
Trait Implementations§
source§impl<'a> Clone for PrimitiveRef<'a>
impl<'a> Clone for PrimitiveRef<'a>
source§fn clone(&self) -> PrimitiveRef<'a>
fn clone(&self) -> PrimitiveRef<'a>
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<'a> Debug for PrimitiveRef<'a>
impl<'a> Debug for PrimitiveRef<'a>
source§impl<'a> From<SchemaRef<'a>> for PrimitiveRef<'a>
impl<'a> From<SchemaRef<'a>> for PrimitiveRef<'a>
impl<'a> Copy for PrimitiveRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrimitiveRef<'a>
impl<'a> !RefUnwindSafe for PrimitiveRef<'a>
impl<'a> !Send for PrimitiveRef<'a>
impl<'a> !Sync for PrimitiveRef<'a>
impl<'a> Unpin for PrimitiveRef<'a>
impl<'a> !UnwindSafe for PrimitiveRef<'a>
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: 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<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
)