pub struct Literal;
Expand description
An atom containing either a localized string or an RDF literal.
Trait Implementations§
Source§impl<'a, 'b> Atom<'a, 'b> for Literalwhere
'a: 'b,
impl<'a, 'b> Atom<'a, 'b> for Literalwhere
'a: 'b,
Source§type ReadParameter = ()
type ReadParameter = ()
The atom-specific parameter of the
read
function. Read moreSource§type ReadHandle = (LiteralInfo, &'a str)
type ReadHandle = (LiteralInfo, &'a str)
The return value of the
read
function. Read moreSource§type WriteParameter = LiteralInfo
type WriteParameter = LiteralInfo
The atom-specific parameter of the
write
function. Read moreSource§type WriteHandle = StringWriter<'a, 'b>
type WriteHandle = StringWriter<'a, 'b>
The return value of the
write
function. Read moreSource§fn read(body: Space<'a>, _: ()) -> Option<(LiteralInfo, &'a str)>
fn read(body: Space<'a>, _: ()) -> Option<(LiteralInfo, &'a str)>
Read the body of the atom. Read more
Source§fn init(
frame: FramedMutSpace<'a, 'b>,
info: LiteralInfo,
) -> Option<StringWriter<'a, 'b>>
fn init( frame: FramedMutSpace<'a, 'b>, info: LiteralInfo, ) -> Option<StringWriter<'a, 'b>>
Initialize the body of the atom. Read more
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
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