pub struct WhereClause {
pub _pred: VerbatimUntil<Cons<Colon, Except<Colon>>>,
pub _colon: Colon,
pub bounds: VerbatimUntil<Either<Comma, Semicolon, BraceGroup>>,
}Expand description
Represents a single predicate within a where clause.
e.g., T: Trait or 'a: 'b.
Fields§
§_pred: VerbatimUntil<Cons<Colon, Except<Colon>>>The type or lifetime being constrained (e.g., T or 'a).
We specifically required a single colon, not 2 because of <A as B>::Thingy
_colon: ColonThe colon separating the constrained item and its bounds.
bounds: VerbatimUntil<Either<Comma, Semicolon, BraceGroup>>The bounds applied to the type or lifetime (e.g., Trait or 'b).
Trait Implementations§
Source§impl Clone for WhereClause
impl Clone for WhereClause
Source§fn clone(&self) -> WhereClause
fn clone(&self) -> WhereClause
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 moreSource§impl Debug for WhereClause
impl Debug for WhereClause
Source§impl Display for WhereClause
impl Display for WhereClause
Source§impl Parser for WhereClause
impl Parser for WhereClause
Source§impl ToTokens for WhereClause
impl ToTokens for WhereClause
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn into_token_iter(self) -> TokenIter ⓘwhere
Self: Sized,
fn into_token_iter(self) -> TokenIter ⓘwhere
Self: Sized,
Convert
self into a TokenIter object.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert
&self into a TokenStream object.Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Convert
self into a TokenStream object.Auto Trait Implementations§
impl Freeze for WhereClause
impl RefUnwindSafe for WhereClause
impl !Send for WhereClause
impl !Sync for WhereClause
impl Unpin for WhereClause
impl UnwindSafe for WhereClause
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> DynamicTokens for T
impl<T> DynamicTokens for T
Source§impl<T> Parse for Twhere
T: Parser,
impl<T> Parse for Twhere
T: Parser,
Source§fn parse(tokens: &mut TokenIter) -> Result<Self, Error>
fn parse(tokens: &mut TokenIter) -> Result<Self, Error>
This is the user facing API to parse grammatical entities. Calls a
parser() within a
transaction. Commits changes on success and returns the parsed value. Read more