pub struct EncodedRows {
pub terms: Vec<TermRow>,
pub triples: Vec<TripleRow>,
}Expand description
Everything that must be written so that an encoded term can be decoded later.
Fields§
§terms: Vec<TermRow>§triples: Vec<TripleRow>Implementations§
Source§impl EncodedRows
impl EncodedRows
Sourcepub fn term(&mut self, term: TermRef<'_>) -> i64
pub fn term(&mut self, term: TermRef<'_>) -> i64
Encodes a term, recording the rows needed to decode it.
pub fn iri(&mut self, iri: &str) -> i64
pub fn bnode(&mut self, label: &str) -> i64
pub fn subject(&mut self, s: NamedOrBlankNodeRef<'_>) -> i64
pub fn graph(&mut self, g: GraphNameRef<'_>) -> i64
pub fn triple(&mut self, t: TripleRef<'_>) -> i64
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for EncodedRows
impl Clone for EncodedRows
Source§impl Debug for EncodedRows
impl Debug for EncodedRows
Auto Trait Implementations§
impl Freeze for EncodedRows
impl RefUnwindSafe for EncodedRows
impl Send for EncodedRows
impl Sync for EncodedRows
impl Unpin for EncodedRows
impl UnsafeUnpin for EncodedRows
impl UnwindSafe for EncodedRows
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