pub enum CheckResult {
MustIntern(TokenStream),
MustInternOrInherit(TokenStream),
MustNotIntern(TokenStream),
Neutral,
}Expand description
Represents result of Leaker::check(), holding the cause in its tuple item.
Variants§
MustIntern(TokenStream)
The type must be interned because it directly depends on the type context.
MustInternOrInherit(TokenStream)
The type must be interned because one of the types which it constituted with must be interned.
MustNotIntern(TokenStream)
The type must not be interned, because type_leak cannot intern this. (e.g. impl Traits,
_, trait bounds with relative trait path, …)
Neutral
Other.
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
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 moreAuto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl !Send for CheckResult
impl !Sync for CheckResult
impl Unpin for CheckResult
impl UnwindSafe for CheckResult
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