pub struct NodeShape { /* private fields */ }
Implementations§
Source§impl NodeShape
impl NodeShape
pub fn new(id: RDFNode) -> Self
pub fn with_targets(self, targets: Vec<Target>) -> Self
pub fn set_targets(&mut self, targets: Vec<Target>)
pub fn with_property_shapes(self, property_shapes: Vec<RDFNode>) -> Self
pub fn with_components(self, components: Vec<Component>) -> Self
pub fn with_closed(self, closed: bool) -> Self
pub fn id(&self) -> &RDFNode
pub fn is_closed(&self) -> &bool
pub fn is_deactivated(&self) -> &bool
pub fn severity(&self) -> Option<Severity>
pub fn components(&self) -> &Vec<Component>
pub fn targets(&self) -> &Vec<Target>
pub fn property_shapes(&self) -> &Vec<RDFNode>
pub fn write<RDF>(&self, rdf: &mut RDF) -> Result<(), RDF::Err>where
RDF: SRDFBuilder,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeShape
impl RefUnwindSafe for NodeShape
impl Send for NodeShape
impl Sync for NodeShape
impl Unpin for NodeShape
impl UnwindSafe for NodeShape
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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