[−][src]Struct rdftk_core::resource::Predicate
A predicate builder type, optionally used for multi-valued predicates.
Implementations
impl Predicate
[src]
pub fn new(name: IRIRef) -> Self
[src]
Construct a new Predicate instance with the provided IRI
name.
pub fn property(&mut self, value: Literal) -> &mut Self
[src]
Add a new literal value to this predicate.
pub fn value_of(&mut self, value: Literal) -> &mut Self
[src]
Add a new literal value to this predicate.
pub fn literal(&mut self, value: Literal) -> &mut Self
[src]
Add a new literal value to this predicate.
pub fn property_alternatives(&mut self, values: &[Literal]) -> &mut Self
[src]
pub fn property_bag(&mut self, values: &[Literal]) -> &mut Self
[src]
pub fn property_sequence(&mut self, values: &[Literal]) -> &mut Self
[src]
pub fn property_container(
&mut self,
values: &[Literal],
kind: IRIRef
) -> &mut Self
[src]
&mut self,
values: &[Literal],
kind: IRIRef
) -> &mut Self
pub fn resource_blank_named(&mut self, name: &str) -> &mut Self
[src]
pub fn resource_named(&mut self, name: IRIRef) -> &mut Self
[src]
pub fn resource(&mut self, resource: Resource) -> &mut Self
[src]
pub fn resource_alternatives(&mut self, values: &[Resource]) -> &mut Self
[src]
pub fn resource_bag(&mut self, values: &[Resource]) -> &mut Self
[src]
pub fn resource_sequence(&mut self, values: &[Resource]) -> &mut Self
[src]
pub fn resource_container(
&mut self,
values: &[Resource],
kind: IRIRef
) -> &mut Self
[src]
&mut self,
values: &[Resource],
kind: IRIRef
) -> &mut Self
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Predicate
impl !Send for Predicate
impl !Sync for Predicate
impl Unpin for Predicate
impl !UnwindSafe for Predicate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,