pub struct OutlineState { /* private fields */ }Implementations§
Source§impl OutlineState
impl OutlineState
pub fn new(nodes: &[Node], index: usize, open: bool, symbols: &Symbols) -> Self
pub fn set_nodes(&mut self, nodes: &[Node])
pub fn selected(&self) -> Option<Item>
pub fn set_active(&mut self, active: bool)
pub fn toggle(&mut self)
pub fn open(&mut self)
pub fn close(&mut self)
pub fn toggle_item(&mut self)
pub fn select_at(&mut self, index: usize)
pub fn expand_all(&mut self)
pub fn collapse_all(&mut self)
pub fn is_open(&self) -> bool
pub fn next(&mut self, amount: usize)
pub fn previous(&mut self, amount: usize)
Trait Implementations§
Source§impl Clone for OutlineState
impl Clone for OutlineState
Source§fn clone(&self) -> OutlineState
fn clone(&self) -> OutlineState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutlineState
impl Debug for OutlineState
Source§impl Default for OutlineState
impl Default for OutlineState
Source§fn default() -> OutlineState
fn default() -> OutlineState
Returns the “default value” for a type. Read more
Source§impl PartialEq for OutlineState
impl PartialEq for OutlineState
impl StructuralPartialEq for OutlineState
Auto Trait Implementations§
impl Freeze for OutlineState
impl RefUnwindSafe for OutlineState
impl Send for OutlineState
impl Sync for OutlineState
impl Unpin for OutlineState
impl UnsafeUnpin for OutlineState
impl UnwindSafe for OutlineState
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