#[repr(C, align(8))]pub struct MethodMeta {
pub _bindgen_opaque_blob: u64,
}Expand description
Describes a a method in an ExecuTorch program.
The program used to create a MethodMeta object must outlive the MethodMeta. It is separate from Method so that this information can be accessed without paying the initialization cost of loading the full Method.
Fields§
§_bindgen_opaque_blob: u64Implementations§
Source§impl MethodMeta
impl MethodMeta
pub unsafe fn name(&self) -> *const c_char
pub unsafe fn num_inputs(&self) -> usize
pub unsafe fn num_outputs(&self) -> usize
pub unsafe fn num_memory_planned_buffers(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MethodMeta
impl RefUnwindSafe for MethodMeta
impl Send for MethodMeta
impl Sync for MethodMeta
impl Unpin for MethodMeta
impl UnwindSafe for MethodMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more