Struct Buffered

Source
pub struct Buffered<TSource: Source> { /* private fields */ }
Expand description

XML deserializer using a source which has an internal buffer.

Implementations§

Source§

impl<TSource: Source> Buffered<TSource>

Source

pub fn new(source: TSource) -> Self

Returns a new Buffered.

Trait Implementations§

Source§

impl<TSource: Source> Deserializer for Buffered<TSource>

Source§

fn de_tag<De: DeserializeTagged>( &mut self, tag_name: &str, ignore_end: IgnoreEnd, ) -> Result<De, Error<De::Error>>

Deserializes a tagged element. Read more
Source§

fn de_tag_with<Output, Err, DeserializeFn>( &mut self, tag_name: &str, ignore_end: IgnoreEnd, deserialize: DeserializeFn, ) -> Result<Output, Error<Err>>
where Err: Error + Send + Sync + 'static, DeserializeFn: FnOnce(&TagStart<'_>, &mut Self) -> Result<Output, Err>,

Deserializes a tagged element using the given function. Read more
Source§

fn de_tag_list<De: DeserializeTagged, Name: AsRef<str>>( &mut self, tag_name: Option<Name>, ) -> Result<Vec<De>, Error<De::Error>>

Deserializes a list of tagged elements. Read more
Source§

fn de_text(&mut self) -> Result<String, Error<Infallible>>

Deserializes a text element. Read more
Source§

fn skip_to_tag_start(&mut self, tag_name: &str) -> Result<(), Error<Infallible>>

Skips past all elements until a tagged element with the name tag_name is reached. Read more
Source§

fn skip_to_tag_end(&mut self, tag_name: &str) -> Result<(), Error<Infallible>>

Skips past all elements until the end of a tagged element with the name tag_name is reached. Read more

Auto Trait Implementations§

§

impl<TSource> Freeze for Buffered<TSource>
where TSource: Freeze,

§

impl<TSource> RefUnwindSafe for Buffered<TSource>
where TSource: RefUnwindSafe,

§

impl<TSource> Send for Buffered<TSource>
where TSource: Send,

§

impl<TSource> Sync for Buffered<TSource>
where TSource: Sync,

§

impl<TSource> Unpin for Buffered<TSource>
where TSource: Unpin,

§

impl<TSource> UnwindSafe for Buffered<TSource>
where TSource: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> MaybeStatic for T