pub struct ShapeIndex {
pub by_class: BTreeMap<NamedNode, BTreeMap<NamedNode, PropertyShape>>,
}Expand description
The compiled property shapes, by target class and path.
Fields§
§by_class: BTreeMap<NamedNode, BTreeMap<NamedNode, PropertyShape>>Implementations§
Source§impl ShapeIndex
impl ShapeIndex
pub fn is_empty(&self) -> bool
Sourcepub fn get(&self, class: &NamedNode, path: &NamedNode) -> Option<&PropertyShape>
pub fn get(&self, class: &NamedNode, path: &NamedNode) -> Option<&PropertyShape>
The shapes of a path for a node with these classes.
Sourcepub fn load_request(caps: &Capabilities) -> Request
pub fn load_request(caps: &Capabilities) -> Request
Statements loading both tables.
Sourcepub fn from_response(response: &Response) -> Result<Self>
pub fn from_response(response: &Response) -> Result<Self>
Decodes the response of Self::load_request.
Trait Implementations§
Source§impl Clone for ShapeIndex
impl Clone for ShapeIndex
Source§impl Debug for ShapeIndex
impl Debug for ShapeIndex
Source§impl Default for ShapeIndex
impl Default for ShapeIndex
Source§impl PartialEq for ShapeIndex
impl PartialEq for ShapeIndex
impl StructuralPartialEq for ShapeIndex
Auto Trait Implementations§
impl Freeze for ShapeIndex
impl RefUnwindSafe for ShapeIndex
impl Send for ShapeIndex
impl Sync for ShapeIndex
impl Unpin for ShapeIndex
impl UnsafeUnpin for ShapeIndex
impl UnwindSafe for ShapeIndex
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