pub struct ProjectKey { /* private fields */ }Expand description
A merged mapping key and every location at which that key was authored.
Implementations§
Source§impl ProjectKey
impl ProjectKey
Sourcepub fn sources(&self) -> &[SourceSpan]
pub fn sources(&self) -> &[SourceSpan]
Returns authored key locations in merge order.
Sourcepub fn effective_source(&self) -> Option<SourceSpan>
pub fn effective_source(&self) -> Option<SourceSpan>
Returns the effective key location.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether interpolation inserted sensitive content into this semantic key.
Trait Implementations§
Source§impl Clone for ProjectKey
impl Clone for ProjectKey
Source§fn clone(&self) -> ProjectKey
fn clone(&self) -> ProjectKey
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 ProjectKey
impl Debug for ProjectKey
impl Eq for ProjectKey
Source§impl PartialEq for ProjectKey
impl PartialEq for ProjectKey
impl StructuralPartialEq for ProjectKey
Auto Trait Implementations§
impl Freeze for ProjectKey
impl RefUnwindSafe for ProjectKey
impl Send for ProjectKey
impl Sync for ProjectKey
impl Unpin for ProjectKey
impl UnsafeUnpin for ProjectKey
impl UnwindSafe for ProjectKey
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