pub struct ObjectIdArrayBuilder { /* private fields */ }
Expand description
Provides a convenient API for building arrays of RDF terms with the ObjectIdEncoding. The documentation of the encoding provides additional information.
Implementations§
Source§impl ObjectIdArrayBuilder
impl ObjectIdArrayBuilder
Sourcepub fn new(encoding: ObjectIdEncoding) -> ObjectIdArrayBuilder
pub fn new(encoding: ObjectIdEncoding) -> ObjectIdArrayBuilder
Create a ObjectIdArrayBuilder with the given capacity
.
Sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Appends a null value to the array.
Sourcepub fn append_object_id(&mut self, term: ObjectId)
pub fn append_object_id(&mut self, term: ObjectId)
Appends an object id.
Sourcepub fn append_object_id_opt(&mut self, term: Option<ObjectId>)
pub fn append_object_id_opt(&mut self, term: Option<ObjectId>)
Appends an object id.
pub fn finish(self) -> ObjectIdArray
Auto Trait Implementations§
impl Freeze for ObjectIdArrayBuilder
impl RefUnwindSafe for ObjectIdArrayBuilder
impl Send for ObjectIdArrayBuilder
impl Sync for ObjectIdArrayBuilder
impl Unpin for ObjectIdArrayBuilder
impl UnwindSafe for ObjectIdArrayBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more