#[non_exhaustive]pub enum SourceList {
None,
Sources(Vec<SourceListEntry>),
}Expand description
A parsed serialized-source-list (CSP3 §2.3.1).
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.
None
The sole 'none' keyword – the only form in which 'none' may
appear (it is an alternative to, not a member of, a list of other
source-expressions).
Sources(Vec<SourceListEntry>)
One or more whitespace-separated source-expression tokens.
Trait Implementations§
Source§impl Clone for SourceList
impl Clone for SourceList
Source§fn clone(&self) -> SourceList
fn clone(&self) -> SourceList
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 SourceList
impl Debug for SourceList
impl Eq for SourceList
Source§impl PartialEq for SourceList
impl PartialEq for SourceList
impl StructuralPartialEq for SourceList
Auto Trait Implementations§
impl Freeze for SourceList
impl RefUnwindSafe for SourceList
impl Send for SourceList
impl Sync for SourceList
impl Unpin for SourceList
impl UnsafeUnpin for SourceList
impl UnwindSafe for SourceList
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