Enum user_doc_doc_data::Documentable
source · 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 copy 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<Documentable> for Documentable
impl PartialEq<Documentable> for Documentable
source§fn eq(&self, other: &Documentable) -> bool
fn eq(&self, other: &Documentable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<Documentable> for Documentable
impl PartialOrd<Documentable> for Documentable
source§fn partial_cmp(&self, other: &Documentable) -> Option<Ordering>
fn partial_cmp(&self, other: &Documentable) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for Documentable
impl Serialize for Documentable
impl Eq for Documentable
impl StructuralEq for Documentable
impl StructuralPartialEq for Documentable
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.