pub struct Footnote<'a> {
pub type: FootnoteType,
pub label: Cow<'a, str>,
}Expand description
Message without associated source code
Fields§
§type: FootnoteTypeType of this footnote
label: Cow<'a, str>Text of this footnote
Trait Implementations§
Source§impl<'a> From<&'a Footnote<'a>> for Message<'a>
Converts &yash_syntax::source::pretty::Footnote into
annotate_snippets::Message.
impl<'a> From<&'a Footnote<'a>> for Message<'a>
Converts &yash_syntax::source::pretty::Footnote into
annotate_snippets::Message.
This implementation is only available when the yash_syntax crate is
built with the annotate-snippets feature enabled.
Source§impl<'a> From<Footnote<'a>> for Message<'a>
Converts yash_syntax::source::pretty::Footnote into
annotate_snippets::Message.
impl<'a> From<Footnote<'a>> for Message<'a>
Converts yash_syntax::source::pretty::Footnote into
annotate_snippets::Message.
This implementation is only available when the yash_syntax crate is
built with the annotate-snippets feature enabled.
impl<'a> Eq for Footnote<'a>
impl<'a> StructuralPartialEq for Footnote<'a>
Auto Trait Implementations§
impl<'a> Freeze for Footnote<'a>
impl<'a> RefUnwindSafe for Footnote<'a>
impl<'a> Send for Footnote<'a>
impl<'a> Sync for Footnote<'a>
impl<'a> Unpin for Footnote<'a>
impl<'a> UnwindSafe for Footnote<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more