Lines Matching refs:Id

3 use crate::util::Id;
56 /// # use clap::{Command, arg, ArgGroup, Id};
72 /// .get_one::<Id>("vers")
87 pub(crate) id: Id,
88 pub(crate) args: Vec<Id>,
90 pub(crate) requires: Vec<Id>,
91 pub(crate) conflicts: Vec<Id>,
109 pub fn new(id: impl Into<Id>) -> Self {
123 pub fn id(mut self, id: impl Into<Id>) -> Self {
152 pub fn arg(mut self, arg_id: impl IntoResettable<Id>) -> Self {
184 pub fn args(mut self, ns: impl IntoIterator<Item = impl Into<Id>>) -> Self {
191 /// Getters for all args. It will return a vector of `Id`
204 pub fn get_args(&self) -> impl Iterator<Item = &Id> {
356 pub fn requires(mut self, id: impl IntoResettable<Id>) -> Self {
403 pub fn requires_all(mut self, ns: impl IntoIterator<Item = impl Into<Id>>) -> Self {
443 pub fn conflicts_with(mut self, id: impl IntoResettable<Id>) -> Self {
489 pub fn conflicts_with_all(mut self, ns: impl IntoIterator<Item = impl Into<Id>>) -> Self {
501 pub fn get_id(&self) -> &Id {
536 let args: Vec<Id> = vec!["a1".into(), "a4".into(), "a2".into(), "a3".into()];
537 let reqs: Vec<Id> = vec!["r1".into(), "r2".into(), "r3".into(), "r4".into()];
538 let confs: Vec<Id> = vec!["c1".into(), "c2".into(), "c3".into(), "c4".into()];
559 let args: Vec<Id> = vec!["a1".into(), "a4".into(), "a2".into(), "a3".into()];
560 let reqs: Vec<Id> = vec!["r1".into(), "r2".into(), "r3".into(), "r4".into()];
561 let confs: Vec<Id> = vec!["c1".into(), "c2".into(), "c3".into(), "c4".into()];
578 let args: Vec<Id> = vec!["a1".into(), "a4".into()];
589 let args: Vec<Id> = vec!["a1".into(), "a4".into()];