Enum marker_api::ast::WhereClauseKind
source · #[non_exhaustive]#[repr(C)]pub enum WhereClauseKind<'ast> {
Lifetime(&'ast LifetimeClause<'ast>),
Ty(&'ast TyClause<'ast>),
}Expand description
This represents a single clause in a where statement
fn foo<'a, T>()
where
'a: 'static,
T: Iterator + 'a,
T::Item: Copy,
String: PartialEq<T>,
i32: Default,
{}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Lifetime(&'ast LifetimeClause<'ast>)
Ty(&'ast TyClause<'ast>)
Trait Implementations§
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for WhereClauseKind<'ast>
impl<'ast> !Send for WhereClauseKind<'ast>
impl<'ast> !Sync for WhereClauseKind<'ast>
impl<'ast> Unpin for WhereClauseKind<'ast>
impl<'ast> UnwindSafe for WhereClauseKind<'ast>
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