pub struct IncludedProjectInput { /* private fields */ }Expand description
A caller-created ordered project input returned by an IncludeLoader.
This is equally suitable for the traversal root. ComposeLens keeps every origin and source
text supplied here, but it never discovers documents from the identity or include paths.
Implementations§
Source§impl IncludedProjectInput
impl IncludedProjectInput
Sourcepub fn new(
identity: IncludeIdentity,
documents: impl IntoIterator<Item = DocumentInput>,
) -> Self
pub fn new( identity: IncludeIdentity, documents: impl IntoIterator<Item = DocumentInput>, ) -> Self
Creates one project input from caller-created documents in merge order.
Sourcepub const fn identity(&self) -> &IncludeIdentity
pub const fn identity(&self) -> &IncludeIdentity
Returns the caller-defined canonical project identity.
Sourcepub fn documents(&self) -> &[DocumentInput]
pub fn documents(&self) -> &[DocumentInput]
Returns documents in caller-selected merge order.
Trait Implementations§
Source§impl Clone for IncludedProjectInput
impl Clone for IncludedProjectInput
Source§fn clone(&self) -> IncludedProjectInput
fn clone(&self) -> IncludedProjectInput
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 IncludedProjectInput
impl Debug for IncludedProjectInput
impl Eq for IncludedProjectInput
Source§impl PartialEq for IncludedProjectInput
impl PartialEq for IncludedProjectInput
impl StructuralPartialEq for IncludedProjectInput
Auto Trait Implementations§
impl Freeze for IncludedProjectInput
impl RefUnwindSafe for IncludedProjectInput
impl Send for IncludedProjectInput
impl Sync for IncludedProjectInput
impl Unpin for IncludedProjectInput
impl UnsafeUnpin for IncludedProjectInput
impl UnwindSafe for IncludedProjectInput
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