pub struct KitSource {
pub data: KitData,
/* private fields */
}Expand description
A kit to install: its data and its handlers.
Fields§
§data: KitDataImplementations§
Source§impl KitSource
impl KitSource
Sourcepub fn shape(
self,
component: &str,
name: &str,
handler: Arc<dyn Primitive<ComponentKit>>,
) -> KitSource
pub fn shape( self, component: &str, name: &str, handler: Arc<dyn Primitive<ComponentKit>>, ) -> KitSource
Adds a handler its tokens can name (tab.shape), for a component
of COMPONENTS; one for another component is reported and not
registered.
Sourcepub fn handlers(&self) -> impl Iterator<Item = (&str, &str)>
pub fn handlers(&self) -> impl Iterator<Item = (&str, &str)>
The handlers it adds: component and name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KitSource
impl !RefUnwindSafe for KitSource
impl Send for KitSource
impl Sync for KitSource
impl Unpin for KitSource
impl UnsafeUnpin for KitSource
impl !UnwindSafe for KitSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more