Trait salsa::InternKey [−][src]
pub trait InternKey { fn from_intern_id(v: InternId) -> Self; fn as_intern_id(&self) -> InternId; }
Expand description
Trait implemented for the “key” that results from a
#[salsa::intern]
query. This is basically meant to be a
“newtype”’d u32
.
Required methods
fn from_intern_id(v: InternId) -> Self
[src]
fn from_intern_id(v: InternId) -> Self
[src]Create an instance of the intern-key from a u32
value.
fn as_intern_id(&self) -> InternId
[src]
fn as_intern_id(&self) -> InternId
[src]Extract the u32
with which the intern-key was created.