pub struct DocComment {
pub identification: Option<Identification>,
pub locale: Option<String>,
pub text: String,
}Expand description
KerML Documentation: ‘doc’ Identification? ( ‘locale’ STRING_VALUE )? body = REGULAR_COMMENT.
Fields§
§identification: Option<Identification>Optional identification after ‘doc’.
locale: Option<String>Optional locale string (e.g. “en”).
text: StringBody text (content between /* and */).
Trait Implementations§
Source§impl Clone for DocComment
impl Clone for DocComment
Source§fn clone(&self) -> DocComment
fn clone(&self) -> DocComment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocComment
impl Debug for DocComment
impl Eq for DocComment
Source§impl PartialEq for DocComment
impl PartialEq for DocComment
Source§fn eq(&self, other: &DocComment) -> bool
fn eq(&self, other: &DocComment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocComment
Auto Trait Implementations§
impl Freeze for DocComment
impl RefUnwindSafe for DocComment
impl Send for DocComment
impl Sync for DocComment
impl Unpin for DocComment
impl UnsafeUnpin for DocComment
impl UnwindSafe for DocComment
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