pub struct ProjectViewResult { /* private fields */ }Expand description
Recoverable result of building a typed merged project view.
Implementations§
Source§impl ProjectViewResult
impl ProjectViewResult
Sourcepub const fn view(&self) -> Option<&ProjectView>
pub const fn view(&self) -> Option<&ProjectView>
Returns the typed view when the profile selection belongs to the project.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Returns project-view diagnostics in traversal order.
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Reports whether a view exists and contains no error diagnostics.
Sourcepub fn into_parts(self) -> (Option<ProjectView>, Vec<Diagnostic>)
pub fn into_parts(self) -> (Option<ProjectView>, Vec<Diagnostic>)
Separates the view and diagnostics.
Trait Implementations§
Source§impl Clone for ProjectViewResult
impl Clone for ProjectViewResult
Source§fn clone(&self) -> ProjectViewResult
fn clone(&self) -> ProjectViewResult
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 ProjectViewResult
impl Debug for ProjectViewResult
impl Eq for ProjectViewResult
Source§impl PartialEq for ProjectViewResult
impl PartialEq for ProjectViewResult
impl StructuralPartialEq for ProjectViewResult
Auto Trait Implementations§
impl Freeze for ProjectViewResult
impl RefUnwindSafe for ProjectViewResult
impl Send for ProjectViewResult
impl Sync for ProjectViewResult
impl Unpin for ProjectViewResult
impl UnsafeUnpin for ProjectViewResult
impl UnwindSafe for ProjectViewResult
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