Enum rustc_mir::util::borrowck_errors::Origin [−][src]
pub enum Origin {
Ast,
Mir,
}🔬 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?
Variants
Ast🔬 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?
Mir🔬 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?
Methods
impl Origin[src]
impl Originpub fn should_emit_errors(self, mode: BorrowckMode) -> bool[src]
pub fn should_emit_errors(self, mode: BorrowckMode) -> bool🔬 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?
Whether we should emit errors for the origin in the given mode
Trait Implementations
impl Copy for Origin[src]
impl Copy for Originimpl Clone for Origin[src]
impl Clone for Originfn clone(&self) -> Origin[src]
fn clone(&self) -> OriginReturns 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 PartialEq for Origin[src]
impl PartialEq for Originfn eq(&self, other: &Origin) -> bool[src]
fn eq(&self, other: &Origin) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Origin[src]
impl Eq for Originfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Debug for Origin[src]
impl Debug for Originfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Origin[src]
impl Display for Origin