pub struct CodeScopeArgs {
pub path: Option<String>,
pub symbol: Option<String>,
pub line: Option<u32>,
}Expand description
--path / --symbol / --line code scope.
--path names a file. --symbol and --line further pin that file;
either or both may be set, and both require --path.
Fields§
§path: Option<String>File path to act on.
symbol: Option<String>Anchor symbol. Requires --path.
line: Option<u32>Anchor line (1-indexed). Requires --path. May combine with --symbol.
Implementations§
Trait Implementations§
Source§impl Args for CodeScopeArgs
impl Args for CodeScopeArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CodeScopeArgs
impl Clone for CodeScopeArgs
Source§impl Debug for CodeScopeArgs
impl Debug for CodeScopeArgs
Source§impl Default for CodeScopeArgs
impl Default for CodeScopeArgs
Source§impl FromArgMatches for CodeScopeArgs
impl FromArgMatches for CodeScopeArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CodeScopeArgs
impl RefUnwindSafe for CodeScopeArgs
impl Send for CodeScopeArgs
impl Sync for CodeScopeArgs
impl Unpin for CodeScopeArgs
impl UnsafeUnpin for CodeScopeArgs
impl UnwindSafe for CodeScopeArgs
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