Struct phlow::PhlowColumnedListView
source · pub struct PhlowColumnedListView { /* private fields */ }Implementations§
source§impl PhlowColumnedListView
impl PhlowColumnedListView
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 items<T: 'static>( self, items_block: impl Fn(TypedPhlowObject<'_, T>) -> Vec<PhlowObject> + 'static ) -> Self
pub fn column( self, column_block: impl FnOnce(PhlowColumn) -> PhlowColumn ) -> Self
pub fn column_item<T: 'static>( self, title: impl Into<String>, item_computation: impl Fn(TypedPhlowObject<'_, T>) -> PhlowObject + 'static ) -> Self
pub fn send<T: 'static>( self, item_send_block: impl Fn(TypedPhlowObject<'_, T>) -> PhlowObject + 'static ) -> Self
pub fn compute_items(&self) -> Vec<PhlowObject>
pub fn compute_item_send(&self, item: &PhlowObject) -> PhlowObject
pub fn get_columns(&self) -> &[PhlowColumn]
Trait Implementations§
source§impl Clone for PhlowColumnedListView
impl Clone for PhlowColumnedListView
source§fn clone(&self) -> PhlowColumnedListView
fn clone(&self) -> PhlowColumnedListView
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 moresource§impl Debug for PhlowColumnedListView
impl Debug for PhlowColumnedListView
source§impl Display for PhlowColumnedListView
impl Display for PhlowColumnedListView
source§impl PhlowView for PhlowColumnedListView
impl PhlowView for PhlowColumnedListView
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 PhlowColumnedListView
impl !Send for PhlowColumnedListView
impl !Sync for PhlowColumnedListView
impl Unpin for PhlowColumnedListView
impl !UnwindSafe for PhlowColumnedListView
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