pub struct TreeView<Id> { /* private fields */ }Expand description
Tree view component with selection and expand/collapse
Implementations§
Trait Implementations§
Source§impl<Id, A> Component<A> for TreeView<Id>
impl<Id, A> Component<A> for TreeView<Id>
Source§type Props<'a> = TreeViewProps<'a, Id, String, A>
type Props<'a> = TreeViewProps<'a, Id, String, A>
Data required to render the component (read-only)
Source§fn handle_event(
&mut self,
event: &EventKind,
props: Self::Props<'_>,
) -> impl IntoIterator<Item = A>
fn handle_event( &mut self, event: &EventKind, props: Self::Props<'_>, ) -> impl IntoIterator<Item = A>
Handle an event and return actions to dispatch Read more
Auto Trait Implementations§
impl<Id> Freeze for TreeView<Id>
impl<Id> RefUnwindSafe for TreeView<Id>where
Id: RefUnwindSafe,
impl<Id> Send for TreeView<Id>where
Id: Send,
impl<Id> Sync for TreeView<Id>where
Id: Sync,
impl<Id> Unpin for TreeView<Id>where
Id: Unpin,
impl<Id> UnwindSafe for TreeView<Id>where
Id: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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