pub struct CompositeValue {
pub name: String,
pub members: IndexMap<String, Box<dyn Value>>,
}
Fields§
§name: String
§members: IndexMap<String, Box<dyn Value>>
Trait Implementations§
Source§impl Clone for CompositeValue
impl Clone for CompositeValue
Source§fn clone(&self) -> CompositeValue
fn clone(&self) -> CompositeValue
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 Value for CompositeValue
impl Value for CompositeValue
Source§fn equals(&self, other: &Box<dyn Value>) -> bool
fn equals(&self, other: &Box<dyn Value>) -> bool
Return if other
Value
is equal or not to current valueSource§fn compare(&self, _other: &Box<dyn Value>) -> Option<Ordering>
fn compare(&self, _other: &Box<dyn Value>) -> Option<Ordering>
Return the order between
Value
and the current value,
or None if they can’t be orderedSource§fn slice_op(
&self,
start: &Option<Box<dyn Value>>,
end: &Option<Box<dyn Value>>,
) -> Result<Box<dyn Value>, String>
fn slice_op( &self, start: &Option<Box<dyn Value>>, end: &Option<Box<dyn Value>>, ) -> Result<Box<dyn Value>, String>
Auto Trait Implementations§
impl Freeze for CompositeValue
impl !RefUnwindSafe for CompositeValue
impl !Send for CompositeValue
impl !Sync for CompositeValue
impl Unpin for CompositeValue
impl !UnwindSafe for CompositeValue
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§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
)