Trait lobsterchat::component::AsComponent
source · [−]pub trait AsComponent {
fn as_component(&self) -> Component;
}
Expand description
This trait allows you to convert an object into a component by passing it as reference
Required Methods
sourcefn as_component(&self) -> Component
fn as_component(&self) -> Component
Converts this object reference to a component