Struct cranelift_codegen::ir::jumptable::JumpTableData [−][src]
pub struct JumpTableData { /* fields omitted */ }
Expand description
Contents of a jump table.
All jump tables use 0-based indexing and are densely populated.
Implementations
impl JumpTableData
[src]
impl JumpTableData
[src]pub fn with_capacity(capacity: usize) -> Self
[src]
pub fn with_capacity(capacity: usize) -> Self
[src]Create a new empty jump table with the specified capacity.
pub fn push_entry(&mut self, dest: Block)
[src]
pub fn push_entry(&mut self, dest: Block)
[src]Append a table entry.
pub fn branches_to(&self, block: Block) -> bool
[src]
pub fn branches_to(&self, block: Block) -> bool
[src]Checks if any of the entries branch to block
.
pub fn as_mut_slice(&mut self) -> &mut [Block]ⓘ
[src]
pub fn as_mut_slice(&mut self) -> &mut [Block]ⓘ
[src]Access the whole table as a mutable slice.
Trait Implementations
impl Clone for JumpTableData
[src]
impl Clone for JumpTableData
[src]fn clone(&self) -> JumpTableData
[src]
fn clone(&self) -> JumpTableData
[src]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)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for JumpTableData
impl Send for JumpTableData
impl Sync for JumpTableData
impl Unpin for JumpTableData
impl UnwindSafe for JumpTableData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more