pub struct TransientArgSource {
pub id: String,
pub args: Vec<String>,
}Expand description
MG.53.e: where a picker-backed TransientItemKind::Argument gets
its candidate list.
The transient names a registered picker source rather than carrying
the listing itself, which is what keeps the listing out of the
feature crate: magit’s “repo-relative file” argument declares
file-pick and the walk stays in lattice-picker, reachable by
every other provider — including WASM ones — through the same
PickerSourceSpec surface.
Fields§
§id: StringRegistered PickerSourceSpec id, e.g. "file-pick".
args: Vec<String>Positional arguments passed to the source’s init, as :picker <id> <args...> would supply them.
Implementations§
Trait Implementations§
Source§impl Clone for TransientArgSource
impl Clone for TransientArgSource
Source§fn clone(&self) -> TransientArgSource
fn clone(&self) -> TransientArgSource
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 moreAuto Trait Implementations§
impl Freeze for TransientArgSource
impl RefUnwindSafe for TransientArgSource
impl Send for TransientArgSource
impl Sync for TransientArgSource
impl Unpin for TransientArgSource
impl UnsafeUnpin for TransientArgSource
impl UnwindSafe for TransientArgSource
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