pub enum Source {
None,
Self_,
UnsafeInline,
UnsafeEval,
StrictDynamic,
ReportSample,
WasmUnsafeEval,
UnsafeHashes,
Host(Cow<'static, str>),
Scheme(Cow<'static, str>),
Nonce(Cow<'static, str>),
Hash {
algorithm: HashAlgorithm,
value: Cow<'static, str>,
},
}Variants§
None
Self_
UnsafeInline
UnsafeEval
StrictDynamic
ReportSample
WasmUnsafeEval
UnsafeHashes
Host(Cow<'static, str>)
Scheme(Cow<'static, str>)
Nonce(Cow<'static, str>)
Hash
Implementations§
Source§impl Source
impl Source
pub const fn is_none(&self) -> bool
pub const fn is_self(&self) -> bool
pub const fn is_unsafe_inline(&self) -> bool
pub const fn is_unsafe_eval(&self) -> bool
pub const fn as_static_str(&self) -> Option<&'static str>
pub fn estimated_size(&self) -> usize
pub fn contains_nonce(&self) -> bool
pub fn contains_hash(&self) -> bool
pub fn scheme(&self) -> Option<&str>
pub fn host(&self) -> Option<&str>
pub fn nonce(&self) -> Option<&str>
pub fn hash_value(&self) -> Option<(&str, HashAlgorithm)>
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.