pub struct SearchPanel<T, K>{
pub query: Value<String>,
pub cache: AutoMap<String, K>,
pub render_results: Rc<dyn Fn(Rc<T>) -> DomNode>,
pub params: SearchPanelParams,
}Expand description
Component that takes query and loads/computes a result.
Fields§
§query: Value<String>§cache: AutoMap<String, K>§render_results: Rc<dyn Fn(Rc<T>) -> DomNode>§params: SearchPanelParamsImplementations§
Source§impl<T, K> SearchPanel<T, K>where
T: SearchResult + PartialEq + Clone + 'static,
K: ToComputed<Resource<Rc<T>>> + Clone + 'static,
impl<T, K> SearchPanel<T, K>where
T: SearchResult + PartialEq + Clone + 'static,
K: ToComputed<Resource<Rc<T>>> + Clone + 'static,
pub fn into_component(self) -> Self
pub fn mount(self) -> DomNode
Auto Trait Implementations§
impl<T, K> Freeze for SearchPanel<T, K>
impl<T, K> !RefUnwindSafe for SearchPanel<T, K>
impl<T, K> !Send for SearchPanel<T, K>
impl<T, K> !Sync for SearchPanel<T, K>
impl<T, K> Unpin for SearchPanel<T, K>
impl<T, K> !UnwindSafe for SearchPanel<T, K>
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> 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