pub struct ControlInfo {
pub control_type: ControlType,
pub format: String,
pub properties: HashMap<String, String>,
}Expand description
https://www.rdfhdt.org/hdt-binary-format/: “preamble that describes a chunk of information”.
Fields§
§control_type: ControlTypeType of control information.
format: String“URI identifier of the implementation of the following section.”
properties: HashMap<String, String>Key-value entries, ASCII only.
Implementations§
Source§impl ControlInfo
impl ControlInfo
Sourcepub fn global() -> ControlInfo
pub fn global() -> ControlInfo
Create global control information for the start of the HDT file
Sourcepub fn header(length: usize) -> ControlInfo
pub fn header(length: usize) -> ControlInfo
Create control information for the header
Sourcepub fn four_sect_dict() -> ControlInfo
pub fn four_sect_dict() -> ControlInfo
Create control information for the four section dictionary
Sourcepub fn bitmap_triples(order: u32, num_triples: u32) -> ControlInfo
pub fn bitmap_triples(order: u32, num_triples: u32) -> ControlInfo
Create control information for BitmapTriples
Trait Implementations§
Source§impl Clone for ControlInfo
impl Clone for ControlInfo
Source§fn clone(&self) -> ControlInfo
fn clone(&self) -> ControlInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlInfo
impl Debug for ControlInfo
Source§impl Default for ControlInfo
impl Default for ControlInfo
Source§fn default() -> ControlInfo
fn default() -> ControlInfo
Returns the “default value” for a type. Read more
impl Eq for ControlInfo
Source§impl PartialEq for ControlInfo
impl PartialEq for ControlInfo
Source§fn eq(&self, other: &ControlInfo) -> bool
fn eq(&self, other: &ControlInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlInfo
Auto Trait Implementations§
impl Freeze for ControlInfo
impl RefUnwindSafe for ControlInfo
impl Send for ControlInfo
impl Sync for ControlInfo
impl Unpin for ControlInfo
impl UnsafeUnpin for ControlInfo
impl UnwindSafe for ControlInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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