Struct rustc::traits::select::WithDepNode [−][src]
pub struct WithDepNode<T> { dep_node: DepNodeIndex, cached_value: T, }
🔬 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?
Fields
dep_node: DepNodeIndex
🔬 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?
cached_value: T
🔬 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<T: Clone> WithDepNode<T>
[src]
impl<T: Clone> WithDepNode<T>
pub fn new(dep_node: DepNodeIndex, cached_value: T) -> Self
[src]
pub fn new(dep_node: DepNodeIndex, cached_value: T) -> Self
🔬 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?
pub fn get(&self, tcx: TyCtxt) -> T
[src]
pub fn get(&self, tcx: TyCtxt) -> T
🔬 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?
Trait Implementations
impl<T: Clone> Clone for WithDepNode<T>
[src]
impl<T: Clone> Clone for WithDepNode<T>
fn clone(&self) -> WithDepNode<T>
[src]
fn clone(&self) -> WithDepNode<T>
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<T: Eq> Eq for WithDepNode<T>
[src]
impl<T: Eq> Eq for WithDepNode<T>
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl<T: PartialEq> PartialEq for WithDepNode<T>
[src]
impl<T: PartialEq> PartialEq for WithDepNode<T>
fn eq(&self, other: &WithDepNode<T>) -> bool
[src]
fn eq(&self, other: &WithDepNode<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WithDepNode<T>) -> bool
[src]
fn ne(&self, other: &WithDepNode<T>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<T> Send for WithDepNode<T> where
T: Send,
impl<T> Send for WithDepNode<T> where
T: Send,
impl<T> Sync for WithDepNode<T> where
T: Sync,
impl<T> Sync for WithDepNode<T> where
T: Sync,