pub struct ProviderOption { /* private fields */ }Expand description
One source-aware provider option mapping entry.
Implementations§
Source§impl ProviderOption
impl ProviderOption
Sourcepub const fn name(&self) -> &Located<String>
pub const fn name(&self) -> &Located<String>
Returns the non-empty option name and source span.
Sourcepub const fn value(&self) -> &ProviderOptionValue
pub const fn value(&self) -> &ProviderOptionValue
Returns the raw scalar or ordered sequence option value.
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 ProviderOption
impl Clone for ProviderOption
Source§fn clone(&self) -> ProviderOption
fn clone(&self) -> ProviderOption
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 ProviderOption
impl Debug for ProviderOption
impl Eq for ProviderOption
Source§impl PartialEq for ProviderOption
impl PartialEq for ProviderOption
impl StructuralPartialEq for ProviderOption
Auto Trait Implementations§
impl Freeze for ProviderOption
impl RefUnwindSafe for ProviderOption
impl Send for ProviderOption
impl Sync for ProviderOption
impl Unpin for ProviderOption
impl UnsafeUnpin for ProviderOption
impl UnwindSafe for ProviderOption
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