pub struct ChangeCaseOkIn<O: SubstParseContext> {
pub not_in_bool: O::NotInBool,
paste_context_checked: (),
}Expand description
Token that an associated ChangeCase has been checked for legal context
Really this ought to be a field in each variant of ChangeCase<O>
but that would make lots of pointless generics.
The keyword-specific part of the check is just an avoidance of user error, anyway.
Fields§
§not_in_bool: O::NotInBool§paste_context_checked: ()Implementations§
Source§impl<O: SubstParseContext> ChangeCaseOkIn<O>
impl<O: SubstParseContext> ChangeCaseOkIn<O>
pub fn new_checked(case: ChangeCase, span: Span) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for ChangeCaseOkIn<O>
impl<O> RefUnwindSafe for ChangeCaseOkIn<O>
impl<O> Send for ChangeCaseOkIn<O>
impl<O> Sync for ChangeCaseOkIn<O>
impl<O> Unpin for ChangeCaseOkIn<O>
impl<O> UnwindSafe for ChangeCaseOkIn<O>
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> 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