pub struct LoggingOption { /* private fields */ }Expand description
One source-aware logging option entry.
Implementations§
Source§impl LoggingOption
impl LoggingOption
Sourcepub const fn name(&self) -> &Located<String>
pub const fn name(&self) -> &Located<String>
Returns the non-empty option key and its exact source span.
Sourcepub const fn value(&self) -> &Located<LoggingOptionValue>
pub const fn value(&self) -> &Located<LoggingOptionValue>
Returns the exact string, number, or null value and its source span.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete key/value entry span.
Trait Implementations§
Source§impl Clone for LoggingOption
impl Clone for LoggingOption
Source§fn clone(&self) -> LoggingOption
fn clone(&self) -> LoggingOption
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 LoggingOption
impl Debug for LoggingOption
impl Eq for LoggingOption
Source§impl PartialEq for LoggingOption
impl PartialEq for LoggingOption
impl StructuralPartialEq for LoggingOption
Auto Trait Implementations§
impl Freeze for LoggingOption
impl RefUnwindSafe for LoggingOption
impl Send for LoggingOption
impl Sync for LoggingOption
impl Unpin for LoggingOption
impl UnsafeUnpin for LoggingOption
impl UnwindSafe for LoggingOption
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