pub struct GmManualConstant {
pub name: String,
pub description: String,
pub link: Url,
pub secondary_descriptors: Option<BTreeMap<String, String>>,
}
Expand description
A constant parsed from the GmManual.
Because parsing constants is difficult, none of these fields are guarenteed to be non-empty except
for [name
]. Additionally, a constant might have more data than just a description – if that is the case,
additional data will be noted in [secondary_descriptors
]. As a consequence of this, if the description
is empty, then secondary_descriptors
will also always be empty.
Fields§
§name: String
The name of the constant
description: String
A description of the constant
link: Url
The link to the webpage.
secondary_descriptors: Option<BTreeMap<String, String>>
Additional descriptors present. Most of the time, this will be None, but can have some Descriptors and Values present.
Trait Implementations§
Source§impl Clone for GmManualConstant
impl Clone for GmManualConstant
Source§fn clone(&self) -> GmManualConstant
fn clone(&self) -> GmManualConstant
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 GmManualConstant
impl Debug for GmManualConstant
Source§impl<'de> Deserialize<'de> for GmManualConstant
impl<'de> Deserialize<'de> for GmManualConstant
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 Ord for GmManualConstant
impl Ord for GmManualConstant
Source§fn cmp(&self, other: &GmManualConstant) -> Ordering
fn cmp(&self, other: &GmManualConstant) -> 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 for GmManualConstant
impl PartialEq for GmManualConstant
Source§impl PartialOrd for GmManualConstant
impl PartialOrd for GmManualConstant
Source§impl Serialize for GmManualConstant
impl Serialize for GmManualConstant
impl Eq for GmManualConstant
impl StructuralPartialEq for GmManualConstant
Auto Trait Implementations§
impl Freeze for GmManualConstant
impl RefUnwindSafe for GmManualConstant
impl Send for GmManualConstant
impl Sync for GmManualConstant
impl Unpin for GmManualConstant
impl UnwindSafe for GmManualConstant
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