pub struct IncludeSearchPaths {
pub iquote: Vec<NormalizedPath>,
pub user: Vec<NormalizedPath>,
pub system: Vec<NormalizedPath>,
pub after: Vec<NormalizedPath>,
}Expand description
Ordered include search paths, preserving -I/-isystem/-iquote/-idirafter.
Resolution order for #include "foo.h" (quoted):
- Directory of the including file
-iquotedirs-Idirs-isystemdirs + compiler defaults-idirafterdirs
Resolution order for #include <foo.h> (angle bracket):
-Idirs-isystemdirs + compiler defaults-idirafterdirs
Fields§
§iquote: Vec<NormalizedPath>-iquote paths — searched only for quoted includes, before -I.
user: Vec<NormalizedPath>-I paths — user include paths (order matters!).
system: Vec<NormalizedPath>-isystem paths + compiler default system dirs.
after: Vec<NormalizedPath>-idirafter paths — searched last.
Implementations§
Source§impl IncludeSearchPaths
impl IncludeSearchPaths
Sourcepub fn quoted_search_dirs(&self) -> impl Iterator<Item = &Path>
pub fn quoted_search_dirs(&self) -> impl Iterator<Item = &Path>
Iterate search dirs for a quoted include (#include "foo.h"),
starting after the including file’s own directory.
Sourcepub fn angle_search_dirs(&self) -> impl Iterator<Item = &Path>
pub fn angle_search_dirs(&self) -> impl Iterator<Item = &Path>
Iterate search dirs for an angle-bracket include (#include <foo.h>).
Sourcepub fn all_search_dirs(&self) -> impl Iterator<Item = &Path>
pub fn all_search_dirs(&self) -> impl Iterator<Item = &Path>
Iterate all search dirs in priority order (iquote → user → system → after). This is the superset of both quoted and angle-bracket search orders.
Trait Implementations§
Source§impl Clone for IncludeSearchPaths
impl Clone for IncludeSearchPaths
Source§fn clone(&self) -> IncludeSearchPaths
fn clone(&self) -> IncludeSearchPaths
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IncludeSearchPaths
impl Debug for IncludeSearchPaths
Source§impl Default for IncludeSearchPaths
impl Default for IncludeSearchPaths
Source§fn default() -> IncludeSearchPaths
fn default() -> IncludeSearchPaths
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IncludeSearchPaths
impl RefUnwindSafe for IncludeSearchPaths
impl Send for IncludeSearchPaths
impl Sync for IncludeSearchPaths
impl Unpin for IncludeSearchPaths
impl UnsafeUnpin for IncludeSearchPaths
impl UnwindSafe for IncludeSearchPaths
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.