Struct witx::parser::Documented
source · [−]pub struct Documented<'a, T> {
pub comments: CommentSyntax<'a>,
pub item: T,
}
Fields
comments: CommentSyntax<'a>
item: T
Trait Implementations
sourceimpl<'a, T: Clone> Clone for Documented<'a, T>
impl<'a, T: Clone> Clone for Documented<'a, T>
sourcefn clone(&self) -> Documented<'a, T>
fn clone(&self) -> Documented<'a, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, T: Debug> Debug for Documented<'a, T>
impl<'a, T: Debug> Debug for Documented<'a, T>
sourceimpl<'a, T: Default> Default for Documented<'a, T>
impl<'a, T: Default> Default for Documented<'a, T>
sourcefn default() -> Documented<'a, T>
fn default() -> Documented<'a, T>
Returns the “default value” for a type. Read more
sourceimpl<'a, T: Parse<'a>> Parse<'a> for Documented<'a, T>
impl<'a, T: Parse<'a>> Parse<'a> for Documented<'a, T>
sourceimpl<'a, T: PartialEq> PartialEq<Documented<'a, T>> for Documented<'a, T>
impl<'a, T: PartialEq> PartialEq<Documented<'a, T>> for Documented<'a, T>
sourcefn eq(&self, other: &Documented<'a, T>) -> bool
fn eq(&self, other: &Documented<'a, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Documented<'a, T>) -> bool
fn ne(&self, other: &Documented<'a, T>) -> bool
This method tests for !=
.
impl<'a, T: Eq> Eq for Documented<'a, T>
impl<'a, T> StructuralEq for Documented<'a, T>
impl<'a, T> StructuralPartialEq for Documented<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Documented<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for Documented<'a, T> where
T: Send,
impl<'a, T> Sync for Documented<'a, T> where
T: Sync,
impl<'a, T> Unpin for Documented<'a, T> where
T: Unpin,
impl<'a, T> UnwindSafe for Documented<'a, T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more