pub struct CollapsibleSection {
pub title: String,
pub content: String,
pub open: bool,
}Fields§
§title: String§content: String§open: boolImplementations§
Source§impl CollapsibleSection
impl CollapsibleSection
pub fn new(title: String, content: String) -> CollapsibleSection
pub fn open(self, open: bool) -> CollapsibleSection
Trait Implementations§
Source§impl Clone for CollapsibleSection
impl Clone for CollapsibleSection
Source§fn clone(&self) -> CollapsibleSection
fn clone(&self) -> CollapsibleSection
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 CollapsibleSection
impl Debug for CollapsibleSection
Source§impl Default for CollapsibleSection
impl Default for CollapsibleSection
Source§fn default() -> CollapsibleSection
fn default() -> CollapsibleSection
Returns the “default value” for a type. Read more
Source§impl Hash for CollapsibleSection
impl Hash for CollapsibleSection
Source§impl PartialEq for CollapsibleSection
impl PartialEq for CollapsibleSection
Source§impl Renderable for CollapsibleSection
impl Renderable for CollapsibleSection
impl Eq for CollapsibleSection
impl StructuralPartialEq for CollapsibleSection
Auto Trait Implementations§
impl Freeze for CollapsibleSection
impl RefUnwindSafe for CollapsibleSection
impl Send for CollapsibleSection
impl Sync for CollapsibleSection
impl Unpin for CollapsibleSection
impl UnwindSafe for CollapsibleSection
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