pub enum AnyValue {
Object(AnyObject),
Reference(AnyReference),
None,
}Variants§
Implementations§
source§impl AnyValue
impl AnyValue
pub fn object<T: 'static>(object: T) -> Self
pub fn reference<T: 'static>(reference: &T) -> Self
pub fn as_ref_safe<T: 'static>(&self) -> Option<&T>
pub fn as_mut_safe<T: 'static>(&mut self) -> Option<&mut T>
pub fn take_value<T: Any>(self) -> Option<T>
pub fn clone_value<T: Any + Clone>(&self) -> Option<T>
pub fn as_ptr(&self) -> *const c_void
pub fn has_value(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> AsPhlowObject for T
impl<T> AsPhlowObject for T
default fn is_phlow_object(&self) -> bool
default fn try_into_phlow_object(&self) -> Option<PhlowObject>
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