#[non_exhaustive]pub struct ResolvedInclude {
pub id: String,
pub name: String,
pub source: InputSource,
}Expand description
A resolved include containing the source identity and the content.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe canonical identity of the included source, used for cycle detection and absolute paths.
name: StringThe display name of the included source, used for error messages.
source: InputSourceThe actual content to parse.
Implementations§
Source§impl ResolvedInclude
impl ResolvedInclude
Sourcepub fn new(
id: impl Into<String>,
name: impl Into<String>,
source: InputSource,
) -> Self
pub fn new( id: impl Into<String>, name: impl Into<String>, source: InputSource, ) -> Self
Construct a resolved include returned by an IncludeResolver.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ResolvedInclude
impl !Send for ResolvedInclude
impl !Sync for ResolvedInclude
impl !UnwindSafe for ResolvedInclude
impl Freeze for ResolvedInclude
impl Unpin for ResolvedInclude
impl UnsafeUnpin for ResolvedInclude
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
Mutably borrows from an owned value. Read more