Lines Matching refs:Path

13 use crate::path::Path;
188 pub fn path(&self) -> &Path { in path() argument
249 Meta::Path(path) => Err(crate::error::new2( in parse_args_with()
476 Path(Path),
490 pub path: Path,
500 pub path: Path,
511 pub fn path(&self) -> &Path { in path() argument
513 Meta::Path(path) => path, in path()
522 pub fn require_path_only(&self) -> Result<&Path> { in require_path_only() argument
524 Meta::Path(path) => return Ok(path), in require_path_only()
537 Meta::Path(path) => Err(crate::error::new2( in require_list()
555 Meta::Path(path) => Err(crate::error::new2( in require_name_value()
630 impl From<Path> for Meta {
631 fn from(meta: Path) -> Meta { in from()
632 Meta::Path(meta) in from()
656 use crate::path::Path;
714 fn parse_outermost_meta_path(input: ParseStream) -> Result<Path> { in parse_outermost_meta_path() argument
717 Ok(Path::from(Ident::new("unsafe", unsafe_token.span))) in parse_outermost_meta_path()
719 Path::parse_mod_style(input) in parse_outermost_meta_path()
723 pub(crate) fn parse_meta_after_path(path: Path, input: ParseStream) -> Result<Meta> { in parse_meta_after_path() argument
729 Ok(Meta::Path(path)) in parse_meta_after_path()
733 fn parse_meta_list_after_path(path: Path, input: ParseStream) -> Result<MetaList> { in parse_meta_list_after_path() argument
742 fn parse_meta_name_value_after_path(path: Path, input: ParseStream) -> Result<MetaNameValue> { in parse_meta_name_value_after_path() argument
775 pub(super) struct DisplayPath<'a>(pub &'a Path);
815 Meta::Path(path) => path::printing::print_path(tokens, path, PathStyle::Mod), in to_tokens()