Enum tuirealm::props::PropPayload
source · pub enum PropPayload {
One(PropValue),
Tup2((PropValue, PropValue)),
Tup3((PropValue, PropValue, PropValue)),
Tup4((PropValue, PropValue, PropValue, PropValue)),
Vec(Vec<PropValue>),
Map(HashMap<String, PropValue>),
Linked(LinkedList<PropPayload>),
None,
}
Expand description
The payload contains the actual value for user defined properties
Variants§
One(PropValue)
Tup2((PropValue, PropValue))
Tup3((PropValue, PropValue, PropValue))
Tup4((PropValue, PropValue, PropValue, PropValue))
Vec(Vec<PropValue>)
Map(HashMap<String, PropValue>)
Linked(LinkedList<PropPayload>)
None
Implementations§
source§impl PropPayload
impl PropPayload
sourcepub fn unwrap_one(self) -> PropValue
pub fn unwrap_one(self) -> PropValue
Unwrap a One value from PropPayload
sourcepub fn unwrap_tup2(self) -> (PropValue, PropValue)
pub fn unwrap_tup2(self) -> (PropValue, PropValue)
Unwrap a Tup2 value from PropPayload
sourcepub fn unwrap_tup3(self) -> (PropValue, PropValue, PropValue)
pub fn unwrap_tup3(self) -> (PropValue, PropValue, PropValue)
Unwrap a Tup3 value from PropPayload
sourcepub fn unwrap_tup4(self) -> (PropValue, PropValue, PropValue, PropValue)
pub fn unwrap_tup4(self) -> (PropValue, PropValue, PropValue, PropValue)
Unwrap a Tup4 value from PropPayload
sourcepub fn unwrap_vec(self) -> Vec<PropValue>
pub fn unwrap_vec(self) -> Vec<PropValue>
Unwrap a Vec value from PropPayload
sourcepub fn unwrap_map(self) -> HashMap<String, PropValue>
pub fn unwrap_map(self) -> HashMap<String, PropValue>
Unwrap a Map value from PropPayload
sourcepub fn unwrap_linked(self) -> LinkedList<PropPayload>
pub fn unwrap_linked(self) -> LinkedList<PropPayload>
Unwrap a Linked list from PropPayload
Trait Implementations§
source§impl Clone for PropPayload
impl Clone for PropPayload
source§fn clone(&self) -> PropPayload
fn clone(&self) -> PropPayload
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 PropPayload
impl Debug for PropPayload
source§impl PartialEq for PropPayload
impl PartialEq for PropPayload
source§fn eq(&self, other: &PropPayload) -> bool
fn eq(&self, other: &PropPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PropPayload
Auto Trait Implementations§
impl RefUnwindSafe for PropPayload
impl Send for PropPayload
impl Sync for PropPayload
impl Unpin for PropPayload
impl UnwindSafe for PropPayload
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