pub struct Canonicalizer<R, W> { /* private fields */ }Expand description
Canonicalizers take XML and return the canonicalised form of that XML.
Implementations§
Source§impl<R, W> Canonicalizer<R, W>
impl<R, W> Canonicalizer<R, W>
Sourcepub fn read_from_reader(reader: R) -> Self
pub fn read_from_reader(reader: R) -> Self
Initialize a new Canonicalizer that reads from the provided
reader.
Source§impl<'a, W> Canonicalizer<&'a [u8], W>
impl<'a, W> Canonicalizer<&'a [u8], W>
Sourcepub fn read_from_str(str: &'a str) -> Self
pub fn read_from_str(str: &'a str) -> Self
Initialize a new Canonicalizer that reads from the provided
str.
Source§impl<W> Canonicalizer<BufReader<File>, W>
impl<W> Canonicalizer<BufReader<File>, W>
Sourcepub fn read_from_file<P: AsRef<Path>>(path: P) -> Result<Self, Arc<Error>>
pub fn read_from_file<P: AsRef<Path>>(path: P) -> Result<Self, Arc<Error>>
Initialize a new Canonicalizer that reads from the provided
str.
§Errors
Returns an I/O error if the file couldn’t be opened and/or read.
Source§impl<R, W: Write> Canonicalizer<R, W>
impl<R, W: Write> Canonicalizer<R, W>
Sourcepub fn write_to_writer(self, writer: W) -> Self
pub fn write_to_writer(self, writer: W) -> Self
Set the writer for this Canonicalizer to a writer.
Source§impl<R> Canonicalizer<R, BufWriter<File>>
impl<R> Canonicalizer<R, BufWriter<File>>
Auto Trait Implementations§
impl<R, W> Freeze for Canonicalizer<R, W>
impl<R, W> RefUnwindSafe for Canonicalizer<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for Canonicalizer<R, W>
impl<R, W> Sync for Canonicalizer<R, W>
impl<R, W> Unpin for Canonicalizer<R, W>
impl<R, W> UnsafeUnpin for Canonicalizer<R, W>where
R: UnsafeUnpin,
W: UnsafeUnpin,
impl<R, W> UnwindSafe for Canonicalizer<R, W>where
R: UnwindSafe,
W: UnwindSafe,
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