Skip to main content

IdSerializer

Struct IdSerializer 

Source
pub struct IdSerializer<'a, R, S: ?Sized> { /* private fields */ }

Implementations§

Source§

impl<'a, R, S: ?Sized> IdSerializer<'a, R, S>

Source

pub fn new(inner: &'a mut S) -> Self

Trait Implementations§

Source§

impl<'a, R: Clone + Ord, S: ?Sized + LinkedDataSerializer<R>> LinkedDataSerializer<R> for IdSerializer<'a, R, S>

Source§

type Error = <S as LinkedDataSerializer<R>>::Error

Source§

type Ok = Option<R>

Source§

fn interpret(&mut self, term: Option<CowTerm<'_>>) -> Result<R, Self::Error>

Source§

fn serialize_resource(&mut self, resource: Option<R>) -> Result<R, Self::Error>

Source§

fn serialize_quad(&mut self, quad: Quad<R>) -> Result<(), Self::Error>

Source§

fn end(self) -> Result<Self::Ok, Self::Error>

Source§

fn as_dyn_mut( &mut self, ) -> &mut dyn LinkedDataSerializer<R, Ok = Self::Ok, Error = Self::Error>
where Self: Sized,

Auto Trait Implementations§

§

impl<'a, R, S> !UnwindSafe for IdSerializer<'a, R, S>

§

impl<'a, R, S> Freeze for IdSerializer<'a, R, S>
where &'a mut S: Freeze, Option<R>: Freeze, S: ?Sized,

§

impl<'a, R, S> RefUnwindSafe for IdSerializer<'a, R, S>

§

impl<'a, R, S> Send for IdSerializer<'a, R, S>
where &'a mut S: Send, Option<R>: Send, S: ?Sized,

§

impl<'a, R, S> Sync for IdSerializer<'a, R, S>
where &'a mut S: Sync, Option<R>: Sync, S: ?Sized,

§

impl<'a, R, S> Unpin for IdSerializer<'a, R, S>
where &'a mut S: Unpin, Option<R>: Unpin, S: ?Sized,

§

impl<'a, R, S> UnsafeUnpin for IdSerializer<'a, R, S>

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.