Enum rustc::traits::object_safety::MethodViolationCode [−][src]
pub enum MethodViolationCode { StaticMethod, ReferencesSelf, Generic, NonStandardSelfType, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Reasons a method might not be object-safe.
Variants
StaticMethod
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
e.g., fn foo()
ReferencesSelf
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
e.g., fn foo(&self, x: Self)
or fn foo(&self) -> Self
Generic
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
e.g., fn foo<A>()
NonStandardSelfType
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
arbitrary self
type, e.g. self: Rc<Self>
Trait Implementations
impl Copy for MethodViolationCode
[src]
impl Copy for MethodViolationCode
impl Clone for MethodViolationCode
[src]
impl Clone for MethodViolationCode
fn clone(&self) -> MethodViolationCode
[src]
fn clone(&self) -> MethodViolationCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MethodViolationCode
[src]
impl Debug for MethodViolationCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for MethodViolationCode
[src]
impl PartialEq for MethodViolationCode
fn eq(&self, other: &MethodViolationCode) -> bool
[src]
fn eq(&self, other: &MethodViolationCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for MethodViolationCode
[src]
impl Eq for MethodViolationCode
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Hash for MethodViolationCode
[src]
impl Hash for MethodViolationCode
Auto Trait Implementations
impl Send for MethodViolationCode
impl Send for MethodViolationCode
impl Sync for MethodViolationCode
impl Sync for MethodViolationCode