pub struct CommentBlock {
pub id: String,
pub line: usize,
pub contents: Vec<String>,
/* private fields */
}
Fields§
§id: String
§line: usize
§contents: Vec<String>
Implementations§
Source§impl CommentBlock
impl CommentBlock
pub fn extract(tag: &str, text: &str) -> Vec<CommentBlock>
pub fn extract_untagged(text: &str) -> Vec<CommentBlock>
Trait Implementations§
Source§impl Clone for CommentBlock
impl Clone for CommentBlock
Source§fn clone(&self) -> CommentBlock
fn clone(&self) -> CommentBlock
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 moreAuto Trait Implementations§
impl Freeze for CommentBlock
impl RefUnwindSafe for CommentBlock
impl Send for CommentBlock
impl Sync for CommentBlock
impl Unpin for CommentBlock
impl UnwindSafe for CommentBlock
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