pub enum MethodViolation {
StaticMethod,
ReferencesSelfInput,
ReferencesSelfOutput,
ReferencesImplTraitInTrait,
AsyncFn,
WhereClauseReferencesSelf,
Generic,
CVariadic,
UndispatchableReceiver,
}Variants§
StaticMethod
e.g., fn foo()
ReferencesSelfInput
e.g., fn foo(&self, x: Self)
ReferencesSelfOutput
e.g., fn foo(&self) -> Self
ReferencesImplTraitInTrait
e.g., fn foo(&self) -> impl Sized
AsyncFn
e.g., async fn foo(&self)
WhereClauseReferencesSelf
e.g., fn foo(&self) where Self: Clone
Generic
e.g., fn foo<A>()
CVariadic
e.g., fn (mut ap: ...)
UndispatchableReceiver
the method’s receiver (self argument) can’t be dispatched on
Trait Implementations§
Source§impl Clone for MethodViolation
impl Clone for MethodViolation
Source§fn clone(&self) -> MethodViolation
fn clone(&self) -> MethodViolation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MethodViolation
Source§impl Debug for MethodViolation
impl Debug for MethodViolation
impl Eq for MethodViolation
Source§impl Hash for MethodViolation
impl Hash for MethodViolation
Source§impl PartialEq for MethodViolation
impl PartialEq for MethodViolation
impl StructuralPartialEq for MethodViolation
Auto Trait Implementations§
impl Freeze for MethodViolation
impl RefUnwindSafe for MethodViolation
impl Send for MethodViolation
impl Sync for MethodViolation
impl Unpin for MethodViolation
impl UnsafeUnpin for MethodViolation
impl UnwindSafe for MethodViolation
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,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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