pub struct SliceMethod {
pub kind: SliceKind,
pub name: &'static str,
pub intrinsic: IntrinsicId,
pub intrinsic_name: &'static str,
pub requires_checked: bool,
}Expand description
One method on Slice(T) / MutSlice(T) (ADR-0064).
Mirrors PointerMethod: each entry maps a surface name to an
IntrinsicId that owns the actual semantic / codegen behaviour.
Fields§
§kind: SliceKindConstructor this method is defined on.
name: &'static strMethod name as written by the user (after .).
intrinsic: IntrinsicIdStable identity used by codegen / IR analyzers.
intrinsic_name: &'static strSymbol the AIR Intrinsic instruction is tagged with.
requires_checked: boolWhether the lowering requires a checked block.
Trait Implementations§
Source§impl Clone for SliceMethod
impl Clone for SliceMethod
Source§fn clone(&self) -> SliceMethod
fn clone(&self) -> SliceMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SliceMethod
impl Debug for SliceMethod
impl Copy for SliceMethod
Auto Trait Implementations§
impl Freeze for SliceMethod
impl RefUnwindSafe for SliceMethod
impl Send for SliceMethod
impl Sync for SliceMethod
impl Unpin for SliceMethod
impl UnsafeUnpin for SliceMethod
impl UnwindSafe for SliceMethod
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