#[repr(C)]pub struct ComponentFieldValueBox {
pub ptr: *mut ComponentFieldValue,
}Expand description
Heap-allocated box for recursive ComponentFieldValue (e.g. Some(value)).
Uses raw pointer indirection to break the infinite size.
Fields§
§ptr: *mut ComponentFieldValueImplementations§
Source§impl ComponentFieldValueBox
impl ComponentFieldValueBox
pub fn new(v: ComponentFieldValue) -> ComponentFieldValueBox
pub fn as_ref(&self) -> &ComponentFieldValue
Trait Implementations§
Source§impl Clone for ComponentFieldValueBox
impl Clone for ComponentFieldValueBox
Source§fn clone(&self) -> ComponentFieldValueBox
fn clone(&self) -> ComponentFieldValueBox
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 moreSource§impl Debug for ComponentFieldValueBox
impl Debug for ComponentFieldValueBox
Source§impl Drop for ComponentFieldValueBox
impl Drop for ComponentFieldValueBox
Source§impl PartialEq for ComponentFieldValueBox
impl PartialEq for ComponentFieldValueBox
Source§fn eq(&self, other: &ComponentFieldValueBox) -> bool
fn eq(&self, other: &ComponentFieldValueBox) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl Freeze for ComponentFieldValueBox
impl RefUnwindSafe for ComponentFieldValueBox
impl !Send for ComponentFieldValueBox
impl !Sync for ComponentFieldValueBox
impl Unpin for ComponentFieldValueBox
impl UnsafeUnpin for ComponentFieldValueBox
impl UnwindSafe for ComponentFieldValueBox
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<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