#[non_exhaustive]pub enum ProviderOptionItem {
Scalar(Located<ComposeScalar>),
Unmodeled {
span: SourceSpan,
},
}Expand description
One item in an authored provider-option sequence.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scalar(Located<ComposeScalar>)
A YAML string, number, or boolean scalar.
Unmodeled
A malformed item retained by source span.
Fields
§
span: SourceSpanComplete malformed-item span.
Implementations§
Source§impl ProviderOptionItem
impl ProviderOptionItem
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete item span.
Trait Implementations§
Source§impl Clone for ProviderOptionItem
impl Clone for ProviderOptionItem
Source§fn clone(&self) -> ProviderOptionItem
fn clone(&self) -> ProviderOptionItem
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 ProviderOptionItem
impl Debug for ProviderOptionItem
impl Eq for ProviderOptionItem
Source§impl PartialEq for ProviderOptionItem
impl PartialEq for ProviderOptionItem
impl StructuralPartialEq for ProviderOptionItem
Auto Trait Implementations§
impl Freeze for ProviderOptionItem
impl RefUnwindSafe for ProviderOptionItem
impl Send for ProviderOptionItem
impl Sync for ProviderOptionItem
impl Unpin for ProviderOptionItem
impl UnsafeUnpin for ProviderOptionItem
impl UnwindSafe for ProviderOptionItem
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