pub enum SurfaceScope {
Local,
Global,
}Available on crate feature
surface-model only.Expand description
How far Clap propagates an argument, as SurfaceArgument::scope
reports.
The set is closed, and the enum is not #[non_exhaustive]: Clap marks an
argument global or leaves it on its own command.
Variants§
Local
The argument belongs only to its declaring command.
Global
The argument remains available to nested commands.
Trait Implementations§
Source§impl Clone for SurfaceScope
impl Clone for SurfaceScope
impl Copy for SurfaceScope
Source§impl Debug for SurfaceScope
impl Debug for SurfaceScope
impl Eq for SurfaceScope
Source§impl PartialEq for SurfaceScope
impl PartialEq for SurfaceScope
Source§impl Serialize for SurfaceScope
Available on crate feature surface-serde only.
impl Serialize for SurfaceScope
Available on crate feature
surface-serde only.impl StructuralPartialEq for SurfaceScope
Auto Trait Implementations§
impl Forget for SurfaceScope
impl Freeze for SurfaceScope
impl Move for SurfaceScope
impl RefUnwindSafe for SurfaceScope
impl Send for SurfaceScope
impl Sync for SurfaceScope
impl Unpin for SurfaceScope
impl UnsafeUnpin for SurfaceScope
impl UnwindSafe for SurfaceScope
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