Struct re_set_lib::utils::variant::Variant
source · pub struct Variant { /* private fields */ }
Implementations§
source§impl Variant
impl Variant
pub fn empty() -> Self
pub fn new<T: TVariant + 'static>(value: T, kind: impl Into<String>) -> Self
pub fn to_value<T: Copy>( &self, conversion_type: &'static str ) -> Result<T, ConversionError>
pub fn to_value_cloned<T: Clone>( &self, conversion_type: &'static str ) -> Result<&T, ConversionError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variant
impl !RefUnwindSafe for Variant
impl Send for Variant
impl !Sync for Variant
impl Unpin for Variant
impl !UnwindSafe for Variant
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