pub enum Target {
items,
expr,
}Expand description
Value for an expect
Variants§
Implementations§
Source§impl Target
impl Target
Sourcefn perform_check(self, ts: TokenStream) -> Option<Error>
fn perform_check(self, ts: TokenStream) -> Option<Error>
Checks if ts can parse as self, returning the error if not
Sourcefn include_syntax(self, file: &str) -> TokenStream
fn include_syntax(self, file: &str) -> TokenStream
Tokens for include!... to include syntax element(s) like self
Sourcefn combine_outputs(
self,
err: TokenStream,
expansion: TokenStream,
) -> TokenStream
fn combine_outputs( self, err: TokenStream, expansion: TokenStream, ) -> TokenStream
Make a single output, syntactically a self.target, out of pieces
err is a compile_error! call,
and expansion is typically the template expansion output.
Trait Implementations§
Source§impl DdOptValDescribable for Target
impl DdOptValDescribable for Target
const DESCRIPTION: &'static str = "expected output syntax (`expect` option)"
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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