#[repr(C)]pub struct PhlowViewMethod {
pub method: Arc<dyn Fn(&PhlowObject, &PhlowViewMethod) -> Option<Box<dyn PhlowView>> + Send + Sync>,
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>> + Send + Sync>
§extension: PhlowExtension
§method_name: String
§full_method_name: String
§source_code: String
Implementations§
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 Freeze for PhlowViewMethod
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