pub struct IncludeRequest { /* private fields */ }Expand description
One effective, caller-authorized include request.
Every path-like value remains raw source data in declared order. The loader receives this complete context and alone decides whether and how any document may be obtained.
Implementations§
Source§impl IncludeRequest
impl IncludeRequest
Sourcepub const fn parent_identity(&self) -> &IncludeIdentity
pub const fn parent_identity(&self) -> &IncludeIdentity
Returns the identity of the project that declared this request.
Sourcepub fn parent_base_directory(&self) -> &Path
pub fn parent_base_directory(&self) -> &Path
Returns the parent project’s first-document directory exactly as supplied by the caller.
Sourcepub const fn declaration_span(&self) -> SourceSpan
pub const fn declaration_span(&self) -> SourceSpan
Returns the complete span of the effective declaration.
Sourcepub const fn declaration_source_id(&self) -> SourceId
pub const fn declaration_source_id(&self) -> SourceId
Returns the source identifier containing the effective declaration.
Sourcepub const fn declaration_origin(&self) -> Option<&DocumentOrigin>
pub const fn declaration_origin(&self) -> Option<&DocumentOrigin>
Returns the origin of the document containing the effective declaration, when available.
Sourcepub const fn item(&self) -> &IncludeItem
pub const fn item(&self) -> &IncludeItem
Returns the complete effective typed include item without interpolation.
Sourcepub fn env_files(&self) -> &[Located<String>]
pub fn env_files(&self) -> &[Located<String>]
Returns raw include environment-file declarations in declared order.
Sourcepub const fn project_directory(&self) -> Option<&Located<String>>
pub const fn project_directory(&self) -> Option<&Located<String>>
Returns the raw optional project-directory declaration.
Trait Implementations§
Source§impl Clone for IncludeRequest
impl Clone for IncludeRequest
Source§fn clone(&self) -> IncludeRequest
fn clone(&self) -> IncludeRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more