Lines Matching refs:Path
42 /// - Meta::Path — attributes whose information content conveys just a
59 /// ~~~~~~Path
63 /// ~~~~Path
67 /// ^^^^Meta::Path
178 pub fn path(&self) -> &Path {
239 Meta::Path(path) => Err(crate::error::new2(
359 /// Meta::Path(path) if path.is_ident("C") => {
446 /// ## Path
466 Path(Path),
480 pub path: Path,
490 pub path: Path,
501 pub fn path(&self) -> &Path {
503 Meta::Path(path) => path,
512 pub fn require_path_only(&self) -> Result<&Path> {
514 Meta::Path(path) => return Ok(path),
521 /// Error if this is a `Meta::Path` or `Meta::NameValue`.
527 Meta::Path(path) => Err(crate::error::new2(
539 /// Error if this is a `Meta::Path` or `Meta::List`.
545 Meta::Path(path) => Err(crate::error::new2(
653 let path = input.call(Path::parse_mod_style)?;
661 let path = input.call(Path::parse_mod_style)?;
669 let path = input.call(Path::parse_mod_style)?;
674 pub(crate) fn parse_meta_after_path(path: Path, input: ParseStream) -> Result<Meta> {
680 Ok(Meta::Path(path))
684 fn parse_meta_list_after_path(path: Path, input: ParseStream) -> Result<MetaList> {
693 fn parse_meta_name_value_after_path(path: Path, input: ParseStream) -> Result<MetaNameValue> {
726 pub(super) struct DisplayPath<'a>(pub &'a Path);