pub struct C14nAlgorithm { /* private fields */ }Expand description
Full C14N algorithm identifier.
Constructed from algorithm URIs found in <CanonicalizationMethod> or
<Transform> elements.
Implementations§
Source§impl C14nAlgorithm
impl C14nAlgorithm
Sourcepub fn with_comments(&self) -> bool
pub fn with_comments(&self) -> bool
Whether comment nodes are preserved.
Sourcepub fn inclusive_prefixes(&self) -> &HashSet<String>
pub fn inclusive_prefixes(&self) -> &HashSet<String>
Prefixes forced via InclusiveNamespaces PrefixList (exclusive C14N).
Sourcepub fn new(mode: C14nMode, with_comments: bool) -> Self
pub fn new(mode: C14nMode, with_comments: bool) -> Self
Create a new algorithm with the given mode and comments flag.
Sourcepub fn from_uri(uri: &str) -> Option<Self>
pub fn from_uri(uri: &str) -> Option<Self>
Parse from an algorithm URI. Returns None for unrecognized URIs.
Sourcepub fn with_prefix_list(self, prefix_list: &str) -> Self
pub fn with_prefix_list(self, prefix_list: &str) -> Self
Set the InclusiveNamespaces PrefixList (exclusive C14N only).
"#default" is normalized to empty string "".
Only meaningful for C14nMode::Exclusive1_0. For inclusive modes,
the prefix list is ignored during canonicalization.
Trait Implementations§
Source§impl Clone for C14nAlgorithm
impl Clone for C14nAlgorithm
Source§fn clone(&self) -> C14nAlgorithm
fn clone(&self) -> C14nAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · 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 C14nAlgorithm
impl Debug for C14nAlgorithm
Source§impl PartialEq for C14nAlgorithm
impl PartialEq for C14nAlgorithm
impl Eq for C14nAlgorithm
impl StructuralPartialEq for C14nAlgorithm
Auto Trait Implementations§
impl Freeze for C14nAlgorithm
impl RefUnwindSafe for C14nAlgorithm
impl Send for C14nAlgorithm
impl Sync for C14nAlgorithm
impl Unpin for C14nAlgorithm
impl UnsafeUnpin for C14nAlgorithm
impl UnwindSafe for C14nAlgorithm
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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