pub enum WhereClause {
GenericInt {
target: Loc<Path>,
expression: Loc<Expression>,
},
TraitBounds {
target: Loc<Path>,
traits: Vec<Loc<TraitSpec>>,
},
}
Variants§
Implementations§
Source§impl WhereClause
impl WhereClause
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WhereClause
impl Debug for WhereClause
Source§impl PartialEq for WhereClause
impl PartialEq for WhereClause
Source§impl WithLocation for WhereClause
impl WithLocation for WhereClause
fn at(self, file_id: usize, span: &impl HasCodespan) -> Loc<Self>where
Self: Sized,
fn between( self, file_id: usize, start: &impl HasCodespan, end: &impl HasCodespan, ) -> Loc<Self>
fn between_locs<T, Y>(self, start: &Loc<T>, end: &Loc<Y>) -> Loc<Self>
fn nowhere(self) -> Loc<Self>where
Self: Sized,
impl StructuralPartialEq for WhereClause
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> 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