pub struct Ctx<'a> {
pub refs: &'a [(&'a str, i64)],
}Expand description
Cross-point context: integer values of scale_ref / selector_ref targets (spec §10.4/§10.5). A slice keeps it heap-free; lookups are O(n) over a handful of refs.
Fields§
§refs: &'a [(&'a str, i64)]Implementations§
Trait Implementations§
impl<'a> Copy for Ctx<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ctx<'a>
impl<'a> RefUnwindSafe for Ctx<'a>
impl<'a> Send for Ctx<'a>
impl<'a> Sync for Ctx<'a>
impl<'a> Unpin for Ctx<'a>
impl<'a> UnsafeUnpin for Ctx<'a>
impl<'a> UnwindSafe for Ctx<'a>
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