pub struct PresentListItem {
pub text: String,
pub depth: u8,
pub ordered: bool,
pub index: usize,
}Expand description
A single item in a PresentList.
Fields§
§text: String§depth: u8§ordered: bool§index: usizeImplementations§
Source§impl PresentListItem
impl PresentListItem
pub fn new(text: &str) -> Self
pub fn with_depth(self, depth: u8) -> Self
pub fn with_ordered(self, ordered: bool, index: usize) -> Self
Trait Implementations§
Source§impl Clone for PresentListItem
impl Clone for PresentListItem
Source§fn clone(&self) -> PresentListItem
fn clone(&self) -> PresentListItem
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 moreAuto Trait Implementations§
impl Freeze for PresentListItem
impl RefUnwindSafe for PresentListItem
impl Send for PresentListItem
impl Sync for PresentListItem
impl Unpin for PresentListItem
impl UnsafeUnpin for PresentListItem
impl UnwindSafe for PresentListItem
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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