pub struct InlineExpectation { /* private fields */ }Implementations§
Source§impl InlineExpectation
impl InlineExpectation
pub fn plain_text(text: impl Into<String>) -> Self
pub fn plain(match_kind: TextMatch) -> Self
pub fn strong(children: Vec<InlineExpectation>) -> Self
pub fn strong_text(text: impl Into<String>) -> Self
pub fn emphasis(children: Vec<InlineExpectation>) -> Self
pub fn emphasis_text(text: impl Into<String>) -> Self
pub fn code_text(text: impl Into<String>) -> Self
pub fn math_text(text: impl Into<String>) -> Self
pub fn reference(expectation: ReferenceExpectation) -> Self
Trait Implementations§
Source§impl Clone for InlineExpectation
impl Clone for InlineExpectation
Source§fn clone(&self) -> InlineExpectation
fn clone(&self) -> InlineExpectation
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 InlineExpectation
impl RefUnwindSafe for InlineExpectation
impl Send for InlineExpectation
impl Sync for InlineExpectation
impl Unpin for InlineExpectation
impl UnsafeUnpin for InlineExpectation
impl UnwindSafe for InlineExpectation
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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