Struct raui_core::widget::component::WidgetComponent [−][src]
Fields
processor: FnWidget
type_name: String
key: Option<String>
idref: Option<WidgetRef>
props: Props
listed_slots: Vec<WidgetNode>
named_slots: HashMap<String, WidgetNode>
Implementations
impl WidgetComponent
[src]
pub fn new(processor: FnWidget, type_name: &str) -> Self
[src]
pub fn key<T>(self, v: T) -> Self where
T: ToString,
[src]
T: ToString,
pub fn idref<T>(self, v: T) -> Self where
T: Into<WidgetRef>,
[src]
T: Into<WidgetRef>,
pub fn props<T>(self, v: T) -> Self where
T: 'static + PropsData,
[src]
T: 'static + PropsData,
pub fn shared_props<T>(self, v: T) -> Self where
T: 'static + PropsData,
[src]
T: 'static + PropsData,
pub fn listed_slot<T>(self, v: T) -> Self where
T: Into<WidgetNode>,
[src]
T: Into<WidgetNode>,
pub fn named_slot<T>(self, k: &str, v: T) -> Self where
T: Into<WidgetNode>,
[src]
T: Into<WidgetNode>,
pub fn remap_props<F>(&mut self, f: F) where
F: FnMut(Props) -> Props,
[src]
F: FnMut(Props) -> Props,
Trait Implementations
impl Clone for WidgetComponent
[src]
fn clone(&self) -> WidgetComponent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WidgetComponent
[src]
impl From<WidgetComponent> for WidgetNode
[src]
fn from(component: WidgetComponent) -> Self
[src]
impl TryFrom<WidgetNode> for WidgetComponent
[src]
Auto Trait Implementations
impl !RefUnwindSafe for WidgetComponent
impl Send for WidgetComponent
impl Sync for WidgetComponent
impl Unpin for WidgetComponent
impl !UnwindSafe for WidgetComponent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,