[−][src]Struct spdcp::Comment
Fields
brief: String
Brief description of the function purpose
Tags of the symbol
Methods
impl Comment
[src]
pub fn parse<T>(data: T) -> Comment where
T: Into<String>,
[src]
T: Into<String>,
Parse the comment into data structures
Example
use std::fs; use spdcp::Comment; fn main() { // Read the comment block from a data source let data = fs::read_to_string("data/comment_block.txt").expect("Unable to read file"); let parsed = Comment::parse(data); println!("{:?}", parsed); }
Trait Implementations
impl Clone for Comment
[src]
impl PartialEq<Comment> for Comment
[src]
impl Debug for Comment
[src]
impl StructuralPartialEq for Comment
[src]
Auto Trait Implementations
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
impl RefUnwindSafe for Comment
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,