[−][src]Struct bloguen::util::XmlEscapeWrite
An output sink, escaping <
, >
, and &
characters passed thereto.
Examples
let mut out = vec![]; XmlEscapeWrite(&mut out).write_all("hewwo > Бenlo".as_bytes()).unwrap(); assert_eq!(out, "hewwo > Бenlo".as_bytes());
Trait Implementations
impl<Wr1: Eq + Write> Eq for XmlEscapeWrite<Wr1>
[src]
impl<Wr1: Clone + Write> Clone for XmlEscapeWrite<Wr1>
[src]
ⓘImportant traits for XmlEscapeWrite<Wr1>fn clone(&self) -> XmlEscapeWrite<Wr1>
[src]
ⓘImportant traits for XmlEscapeWrite<Wr1>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Wr1: PartialOrd + Write> PartialOrd<XmlEscapeWrite<Wr1>> for XmlEscapeWrite<Wr1>
[src]
fn partial_cmp(&self, other: &XmlEscapeWrite<Wr1>) -> Option<Ordering>
[src]
fn lt(&self, other: &XmlEscapeWrite<Wr1>) -> bool
[src]
fn le(&self, other: &XmlEscapeWrite<Wr1>) -> bool
[src]
fn gt(&self, other: &XmlEscapeWrite<Wr1>) -> bool
[src]
fn ge(&self, other: &XmlEscapeWrite<Wr1>) -> bool
[src]
impl<Wr1: PartialEq + Write> PartialEq<XmlEscapeWrite<Wr1>> for XmlEscapeWrite<Wr1>
[src]
fn eq(&self, other: &XmlEscapeWrite<Wr1>) -> bool
[src]
fn ne(&self, other: &XmlEscapeWrite<Wr1>) -> bool
[src]
impl<Wr1: Ord + Write> Ord for XmlEscapeWrite<Wr1>
[src]
fn cmp(&self, other: &XmlEscapeWrite<Wr1>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<Wr1: Copy + Write> Copy for XmlEscapeWrite<Wr1>
[src]
impl<Wr1: Hash + Write> Hash for XmlEscapeWrite<Wr1>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Wr1: Debug + Write> Debug for XmlEscapeWrite<Wr1>
[src]
impl<Wr1: Write> Write for XmlEscapeWrite<Wr1>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
fn write_vectored(&mut self, bufs: &[IoSlice]) -> Result<usize, Error>
1.36.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl<Wr1> Send for XmlEscapeWrite<Wr1> where
Wr1: Send,
Wr1: Send,
impl<Wr1> Unpin for XmlEscapeWrite<Wr1> where
Wr1: Unpin,
Wr1: Unpin,
impl<Wr1> Sync for XmlEscapeWrite<Wr1> where
Wr1: Sync,
Wr1: Sync,
impl<Wr1> UnwindSafe for XmlEscapeWrite<Wr1> where
Wr1: UnwindSafe,
Wr1: UnwindSafe,
impl<Wr1> RefUnwindSafe for XmlEscapeWrite<Wr1> where
Wr1: RefUnwindSafe,
Wr1: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> RuleType for T where
T: Copy + Eq + Ord + Hash + Debug,
[src]
T: Copy + Eq + Ord + Hash + Debug,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,