pub enum ArgumentOrigin {
KernelPosition(usize),
Guest(Symbol),
}Expand description
The exact place at which an argument entered the call boundary.
Origins are data rather than formatted diagnostics so a guest can retain its own source vocabulary while still identifying every occurrence.
Variants§
KernelPosition(usize)
A zero-based position in the kernel’s evaluated Args sequence.
Guest(Symbol)
A guest adapter’s stable source location or expansion identity.
Trait Implementations§
Source§impl Clone for ArgumentOrigin
impl Clone for ArgumentOrigin
Source§fn clone(&self) -> ArgumentOrigin
fn clone(&self) -> ArgumentOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArgumentOrigin
impl Debug for ArgumentOrigin
impl Eq for ArgumentOrigin
Source§impl Hash for ArgumentOrigin
impl Hash for ArgumentOrigin
Source§impl PartialEq for ArgumentOrigin
impl PartialEq for ArgumentOrigin
impl StructuralPartialEq for ArgumentOrigin
Auto Trait Implementations§
impl Freeze for ArgumentOrigin
impl RefUnwindSafe for ArgumentOrigin
impl Send for ArgumentOrigin
impl Sync for ArgumentOrigin
impl Unpin for ArgumentOrigin
impl UnsafeUnpin for ArgumentOrigin
impl UnwindSafe for ArgumentOrigin
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