Skip to main content

QuadSerializer

Struct QuadSerializer 

Source
pub struct QuadSerializer<I: GroundInterpretation = GenInterpretation<BlankIdGenerator>> { /* private fields */ }

Implementations§

Source§

impl<I: GroundInterpretation> QuadSerializer<I>

Source

pub fn new(interpretation: I) -> Self

Trait Implementations§

Source§

impl<I> LinkedDataSerializer<<I as Domain>::Resource> for QuadSerializer<I>

Source§

type Error = QuadSerializationFailed<<I as Domain>::Resource>

Source§

type Ok = Vec<Quad<<I as Domain>::Resource>>

Source§

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

Source§

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

Source§

fn serialize_quad(&mut self, quad: Quad<I::Resource>) -> 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<I> Freeze for QuadSerializer<I>
where I: Freeze, Vec<Quad<<I as Domain>::Resource>>: Freeze,

§

impl<I> RefUnwindSafe for QuadSerializer<I>

§

impl<I> Send for QuadSerializer<I>
where I: Send, Vec<Quad<<I as Domain>::Resource>>: Send,

§

impl<I> Sync for QuadSerializer<I>
where I: Sync, Vec<Quad<<I as Domain>::Resource>>: Sync,

§

impl<I> Unpin for QuadSerializer<I>
where I: Unpin, Vec<Quad<<I as Domain>::Resource>>: Unpin,

§

impl<I> UnsafeUnpin for QuadSerializer<I>

§

impl<I> UnwindSafe for QuadSerializer<I>

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.