Struct phlow::PhlowViewMethod
source · #[repr(C)]pub struct PhlowViewMethod {
pub method: Arc<dyn Fn(&PhlowObject, &PhlowViewMethod) -> Option<Box<dyn PhlowView>>>,
pub extension: PhlowExtension,
pub method_name: String,
pub full_method_name: String,
pub source_code: String,
}Fields§
§method: Arc<dyn Fn(&PhlowObject, &PhlowViewMethod) -> Option<Box<dyn PhlowView>>>§extension: PhlowExtension§method_name: String§full_method_name: String§source_code: StringImplementations§
source§impl PhlowViewMethod
impl PhlowViewMethod
pub fn as_view(&self, object: &PhlowObject) -> Option<Box<dyn PhlowView>>
pub fn source_code(&self) -> &str
Trait Implementations§
source§impl Clone for PhlowViewMethod
impl Clone for PhlowViewMethod
source§fn clone(&self) -> PhlowViewMethod
fn clone(&self) -> PhlowViewMethod
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PhlowViewMethod
impl !Send for PhlowViewMethod
impl !Sync for PhlowViewMethod
impl Unpin for PhlowViewMethod
impl !UnwindSafe for PhlowViewMethod
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