pub struct ProjectAnnotationEntry { /* private fields */ }Expand description
One effective service annotation after keyed merge and duplicate replacement.
Implementations§
Source§impl ProjectAnnotationEntry
impl ProjectAnnotationEntry
Sourcepub const fn name(&self) -> &ProjectKey
pub const fn name(&self) -> &ProjectKey
Returns the effective annotation name and every contributing key/item location.
Sourcepub const fn value(&self) -> Option<&ProjectValue<ProjectAnnotationScalar>>
pub const fn value(&self) -> Option<&ProjectValue<ProjectAnnotationScalar>>
Returns the explicit effective annotation value.
A key-only list item returns None; it is diagnosed and never coerced to an empty string.
Sourcepub const fn raw_list_item(
&self,
) -> Option<&ProjectValue<ProjectAnnotationScalar>>
pub const fn raw_list_item( &self, ) -> Option<&ProjectValue<ProjectAnnotationScalar>>
Returns the complete raw list scalar when list syntax supplied the effective entry.
Sourcepub const fn syntax(&self) -> EntrySyntax
pub const fn syntax(&self) -> EntrySyntax
Returns the most recent mapping or list syntax contributing this entry.
Sourcepub fn contributors(&self) -> &[MergeProvenance]
pub fn contributors(&self) -> &[MergeProvenance]
Returns every replaced contributor’s merge provenance in authored order.
Trait Implementations§
Source§impl Clone for ProjectAnnotationEntry
impl Clone for ProjectAnnotationEntry
Source§fn clone(&self) -> ProjectAnnotationEntry
fn clone(&self) -> ProjectAnnotationEntry
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 ProjectAnnotationEntry
impl Debug for ProjectAnnotationEntry
impl Eq for ProjectAnnotationEntry
Source§impl PartialEq for ProjectAnnotationEntry
impl PartialEq for ProjectAnnotationEntry
impl StructuralPartialEq for ProjectAnnotationEntry
Auto Trait Implementations§
impl Freeze for ProjectAnnotationEntry
impl RefUnwindSafe for ProjectAnnotationEntry
impl Send for ProjectAnnotationEntry
impl Sync for ProjectAnnotationEntry
impl Unpin for ProjectAnnotationEntry
impl UnsafeUnpin for ProjectAnnotationEntry
impl UnwindSafe for ProjectAnnotationEntry
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