pub struct ExposeItem { /* private fields */ }Expand description
One exact source-aware service expose sequence item.
Implementations§
Source§impl ExposeItem
impl ExposeItem
Sourcepub fn value(&self) -> &str
pub fn value(&self) -> &str
Returns the exact scalar value without normalizing its port, range, or protocol.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the exact source span of this scalar item.
Sourcepub const fn scalar_kind(&self) -> ExposeScalarKind
pub const fn scalar_kind(&self) -> ExposeScalarKind
Returns whether the authored YAML scalar was a string or number.
Sourcepub const fn kind(&self) -> &ExposeItemKind
pub const fn kind(&self) -> &ExposeItemKind
Returns the conservative raw-preserving item classification.
Trait Implementations§
Source§impl Clone for ExposeItem
impl Clone for ExposeItem
Source§fn clone(&self) -> ExposeItem
fn clone(&self) -> ExposeItem
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 ExposeItem
impl Debug for ExposeItem
impl Eq for ExposeItem
Source§impl PartialEq for ExposeItem
impl PartialEq for ExposeItem
impl StructuralPartialEq for ExposeItem
Auto Trait Implementations§
impl Freeze for ExposeItem
impl RefUnwindSafe for ExposeItem
impl Send for ExposeItem
impl Sync for ExposeItem
impl Unpin for ExposeItem
impl UnsafeUnpin for ExposeItem
impl UnwindSafe for ExposeItem
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