#[non_exhaustive]pub struct IncludeFolders {
pub search: Vec<PathBuf>,
pub direct: Vec<PathBuf>,
pub memory: Option<MemoryIncludes>,
}Expand description
The folders searched for absolute includes (#include "\DZ\data\x.hpp").
A folder in search is searched recursively for a file whose path ends in the include path (and whose
$PBOPREFIX$ matches); the walk does not follow directory symlinks that leave the folder, and enters no directory twice;
a search folder that reaches 1,000,000 visited entries is an error naming the
include, and it ends the whole lookup (the other folders are not tried). A folder in direct is only
checked for <folder>/<include path> (case-insensitively as a second pass), without walking it: use it for the
current working directory, which can be a whole disk. The search folders are tried first, then the direct
ones.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.search: Vec<PathBuf>Folders searched recursively.
direct: Vec<PathBuf>Folders checked only for the include path directly below them.
memory: Option<MemoryIncludes>When set, includes come from these in-memory files only and the file system is never read (the
folders above are ignored); see MemoryIncludes.
Implementations§
Source§impl IncludeFolders
impl IncludeFolders
Sourcepub fn with_memory(self, memory: MemoryIncludes) -> Self
pub fn with_memory(self, memory: MemoryIncludes) -> Self
Takes the includes from memory only; the file system is not read.
Sourcepub fn with_direct(self, direct: Vec<PathBuf>) -> Self
pub fn with_direct(self, direct: Vec<PathBuf>) -> Self
Adds folders that are only checked directly.
Trait Implementations§
Source§impl Clone for IncludeFolders
impl Clone for IncludeFolders
Source§fn clone(&self) -> IncludeFolders
fn clone(&self) -> IncludeFolders
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IncludeFolders
impl Debug for IncludeFolders
Source§impl Default for IncludeFolders
impl Default for IncludeFolders
Source§fn default() -> IncludeFolders
fn default() -> IncludeFolders
Auto Trait Implementations§
impl Freeze for IncludeFolders
impl RefUnwindSafe for IncludeFolders
impl Send for IncludeFolders
impl Sync for IncludeFolders
impl Unpin for IncludeFolders
impl UnsafeUnpin for IncludeFolders
impl UnwindSafe for IncludeFolders
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().