pub struct DocumentedConstants { /* private fields */ }Implementations§
Source§impl DocumentedConstants
impl DocumentedConstants
Sourcepub fn constant_names(&self) -> &[&'static str]
pub fn constant_names(&self) -> &[&'static str]
Returns all constants names
Sourcepub fn constant_types(&self) -> &[&'static str]
pub fn constant_types(&self) -> &[&'static str]
Returns all constants types
Sourcepub fn constant_values(&self) -> &[&'static str]
pub fn constant_values(&self) -> &[&'static str]
Returns all constants values (raw string)
pub fn constant_docs_raw(&self) -> &[&[&'static str]]
Sourcepub fn constant_docs(&self) -> Vec<Vec<&'static str>>
pub fn constant_docs(&self) -> Vec<Vec<&'static str>>
Returns all constants docstrings, one line being one string
Sourcepub fn commented_constants(&self) -> String
pub fn commented_constants(&self) -> String
Returns string where each constant is shown with its type and docstring
Trait Implementations§
Source§impl Clone for DocumentedConstants
impl Clone for DocumentedConstants
Source§fn clone(&self) -> DocumentedConstants
fn clone(&self) -> DocumentedConstants
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 moreimpl Copy for DocumentedConstants
Auto Trait Implementations§
impl Freeze for DocumentedConstants
impl RefUnwindSafe for DocumentedConstants
impl Send for DocumentedConstants
impl Sync for DocumentedConstants
impl Unpin for DocumentedConstants
impl UnsafeUnpin for DocumentedConstants
impl UnwindSafe for DocumentedConstants
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