Struct cranelift_codegen::ir::entities::FuncRef [−][src]
pub struct FuncRef(_);
A reference to an external function.
Methods
impl FuncRef[src]
impl FuncRefpub fn with_number(n: u32) -> Option<Self>[src]
pub fn with_number(n: u32) -> Option<Self>Create a new external function reference from its number.
This method is for use by the parser.
Trait Implementations
impl Copy for FuncRef[src]
impl Copy for FuncRefimpl Clone for FuncRef[src]
impl Clone for FuncReffn clone(&self) -> FuncRef[src]
fn clone(&self) -> FuncRefReturns 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)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for FuncRef[src]
impl PartialEq for FuncReffn eq(&self, other: &FuncRef) -> bool[src]
fn eq(&self, other: &FuncRef) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FuncRef) -> bool[src]
fn ne(&self, other: &FuncRef) -> boolThis method tests for !=.
impl Eq for FuncRef[src]
impl Eq for FuncRefimpl Hash for FuncRef[src]
impl Hash for FuncReffn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl EntityRef for FuncRef
impl EntityRef for FuncReffn new(index: usize) -> Self
fn new(index: usize) -> SelfCreate a new entity reference from a small integer. This should crash if the requested index is not representable. Read more
fn index(self) -> usize
fn index(self) -> usizeGet the index that was used to create this entity reference.
impl ReservedValue for FuncRef
impl ReservedValue for FuncReffn reserved_value() -> FuncRef
fn reserved_value() -> FuncRefCreate an instance of the reserved value.
impl Display for FuncRef
impl Display for FuncRefimpl Debug for FuncRef
impl Debug for FuncRefimpl From<FuncRef> for AnyEntity[src]
impl From<FuncRef> for AnyEntity