Struct phlow::AnyReference
source · pub struct AnyReference { /* private fields */ }Implementations§
source§impl AnyReference
impl AnyReference
pub fn new<T: 'static + ?Sized>(reference: &T) -> Self
pub fn as_ref<T: 'static>(&self) -> &T
pub fn as_ref_safe<T: 'static>(&self) -> Option<&T>
pub fn as_mut_safe<T: Any>(&mut self) -> Option<&mut T>
pub fn as_ptr(&self) -> *const c_void
pub fn clone_value<T: Any + Clone>(&self) -> Option<T>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AnyReference
impl !Send for AnyReference
impl !Sync for AnyReference
impl Unpin for AnyReference
impl UnwindSafe for AnyReference
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