pub struct TagBuilder {
pub label: Option<&'static str>,
pub onclose: Option<Rc<dyn Fn()>>,
pub class: Option<&'static str>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§label: Option<&'static str>§onclose: Option<Rc<dyn Fn()>>§class: Option<&'static str>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl TagBuilder
impl TagBuilder
pub fn label(self, val: impl Into<&'static str>) -> Self
pub fn onclose<__Marker>( self, val: impl __Tag_onclose_IntoCallback<__Marker>, ) -> Self
pub fn onclose_fn(self, val: impl Fn() + 'static) -> Self
pub fn class(self, val: impl Into<Option<&'static str>>) -> Self
pub fn children(self, children: Vec<NodeBlueprint>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TagBuilder
impl !Send for TagBuilder
impl !Sync for TagBuilder
impl !UnwindSafe for TagBuilder
impl Forget for TagBuilder
impl Freeze for TagBuilder
impl Move for TagBuilder
impl Unpin for TagBuilder
impl UnsafeUnpin for TagBuilder
Blanket Implementations§
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