Struct phlow::PhlowTextView
source · pub struct PhlowTextView { /* private fields */ }Implementations§
source§impl PhlowTextView
impl PhlowTextView
pub fn new(object: PhlowObject, defining_method: PhlowViewMethod) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn priority(self, priority: usize) -> Self
pub fn text<T: 'static>( self, text_block: impl Fn(TypedPhlowObject<'_, T>) -> String + 'static ) -> Self
pub fn text_mut<T: 'static>( self, text_block: impl Fn(TypedPhlowObjectMut<'_, T>) -> String + 'static ) -> Self
pub fn compute_text(&self) -> String
Trait Implementations§
source§impl Debug for PhlowTextView
impl Debug for PhlowTextView
source§impl Display for PhlowTextView
impl Display for PhlowTextView
source§impl PhlowView for PhlowTextView
impl PhlowView for PhlowTextView
fn get_title(&self) -> &str
fn get_priority(&self) -> usize
fn get_view_type(&self) -> &str
fn get_defining_method(&self) -> &PhlowViewMethod
fn view_type() -> &'static strwhere Self: Sized,
fn object(&self) -> &PhlowObject
fn as_any(&self) -> &dyn Any
fn to_any(self: Box<Self>) -> Box<dyn Any>
fn list(&self) -> PhlowListView
fn columned_list(&self) -> PhlowColumnedListView
fn text(&self) -> PhlowTextView
Auto Trait Implementations§
impl !RefUnwindSafe for PhlowTextView
impl !Send for PhlowTextView
impl !Sync for PhlowTextView
impl Unpin for PhlowTextView
impl !UnwindSafe for PhlowTextView
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