pub enum Documentable {
Doc(String, String),
BoxedDocDict(String, Box<DocDict>),
}Expand description
A documentation or a Docdict Each documentable has a name string
Variants§
Implementations§
Source§impl Documentable
impl Documentable
Sourcepub fn get_inner_boxed_doc_dict_mut_ref(&mut self) -> Option<&mut Box<DocDict>>
pub fn get_inner_boxed_doc_dict_mut_ref(&mut self) -> Option<&mut Box<DocDict>>
Get a mutable reference to the inner chapter (BoxedDocDict) contained if any
Trait Implementations§
Source§impl Clone for Documentable
impl Clone for Documentable
Source§fn clone(&self) -> Documentable
fn clone(&self) -> Documentable
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 Documentable
impl Debug for Documentable
Source§impl<'de> Deserialize<'de> for Documentable
impl<'de> Deserialize<'de> for Documentable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Documentable
impl Display for Documentable
Source§impl Ord for Documentable
impl Ord for Documentable
Source§fn cmp(&self, other: &Documentable) -> Ordering
fn cmp(&self, other: &Documentable) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&str> for Documentable
impl PartialEq<&str> for Documentable
Source§impl PartialEq for Documentable
impl PartialEq for Documentable
Source§impl PartialOrd for Documentable
impl PartialOrd for Documentable
Source§impl Serialize for Documentable
impl Serialize for Documentable
impl Eq for Documentable
impl StructuralPartialEq for Documentable
Auto Trait Implementations§
impl Freeze for Documentable
impl RefUnwindSafe for Documentable
impl Send for Documentable
impl Sync for Documentable
impl Unpin for Documentable
impl UnwindSafe for Documentable
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.