pub struct MatchValue {
pub string: Option<String>,
pub number: Option<f64>,
pub boolean: Option<bool>,
}Expand description
A tagged union for match values — at most one field is Some.
Fields§
§string: Option<String>§number: Option<f64>§boolean: Option<bool>Implementations§
Source§impl MatchValue
impl MatchValue
Trait Implementations§
Source§impl Clone for MatchValue
impl Clone for MatchValue
Source§fn clone(&self) -> MatchValue
fn clone(&self) -> MatchValue
Returns a duplicate 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 MatchValue
impl Debug for MatchValue
Source§impl PartialEq for MatchValue
impl PartialEq for MatchValue
impl StructuralPartialEq for MatchValue
Auto Trait Implementations§
impl Freeze for MatchValue
impl RefUnwindSafe for MatchValue
impl Send for MatchValue
impl Sync for MatchValue
impl Unpin for MatchValue
impl UnsafeUnpin for MatchValue
impl UnwindSafe for MatchValue
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