[−][src]Struct atelier_core::model::shapes::Resource
Corresponds to the "resource" shape.
Implementations
impl Resource
[src]
pub fn has_identifiers(&self) -> bool
[src]
pub fn identifiers(&self) -> impl Iterator<Item = (&Identifier, &ShapeID)>
[src]
pub fn add_identifier(&mut self, id: Identifier, shape: ShapeID)
[src]
pub fn remove_identifier(&mut self, id: &Identifier)
[src]
pub fn has_create(&self) -> bool
[src]
Returns true
if this shape has a value for this member, else false
.
pub fn create(&self) -> Option<&ShapeID>
[src]
Return the current value of this member.
pub fn set_create(&mut self, create: ShapeID)
[src]
Set the current value of this member.
pub fn unset_create(&mut self)
[src]
Set the current value of this member to None
.
pub fn has_put(&self) -> bool
[src]
Returns true
if this shape has a value for this member, else false
.
pub fn put(&self) -> Option<&ShapeID>
[src]
Return the current value of this member.
pub fn set_put(&mut self, put: ShapeID)
[src]
Set the current value of this member.
pub fn unset_put(&mut self)
[src]
Set the current value of this member to None
.
pub fn has_read(&self) -> bool
[src]
Returns true
if this shape has a value for this member, else false
.
pub fn read(&self) -> Option<&ShapeID>
[src]
Return the current value of this member.
pub fn set_read(&mut self, read: ShapeID)
[src]
Set the current value of this member.
pub fn unset_read(&mut self)
[src]
Set the current value of this member to None
.
pub fn has_update(&self) -> bool
[src]
Returns true
if this shape has a value for this member, else false
.
pub fn update(&self) -> Option<&ShapeID>
[src]
Return the current value of this member.
pub fn set_update(&mut self, update: ShapeID)
[src]
Set the current value of this member.
pub fn unset_update(&mut self)
[src]
Set the current value of this member to None
.
pub fn has_delete(&self) -> bool
[src]
Returns true
if this shape has a value for this member, else false
.
pub fn delete(&self) -> Option<&ShapeID>
[src]
Return the current value of this member.
pub fn set_delete(&mut self, delete: ShapeID)
[src]
Set the current value of this member.
pub fn unset_delete(&mut self)
[src]
Set the current value of this member to None
.
pub fn has_list(&self) -> bool
[src]
Returns true
if this shape has a value for this member, else false
.
pub fn list(&self) -> Option<&ShapeID>
[src]
Return the current value of this member.
pub fn set_list(&mut self, list: ShapeID)
[src]
Set the current value of this member.
pub fn unset_list(&mut self)
[src]
Set the current value of this member to None
.
pub fn has_operations(&self) -> bool
[src]
Returns true
if this member's collection has any elements, else false
.
pub fn operations(&self) -> impl Iterator<Item = &ShapeID>
[src]
Return an iterator over all elements in this member's collection.
pub fn add_operation(&mut self, operation: ShapeID)
[src]
Add an element to this member's collection.
pub fn append_operations(&mut self, operations: &[ShapeID])
[src]
Add all these elements to this member's collection.
pub fn remove_operation(&mut self, operation: &ShapeID)
[src]
Remove an element, with the given identifier, to this member's collection.
pub fn has_collection_operations(&self) -> bool
[src]
Returns true
if this member's collection has any elements, else false
.
pub fn collection_operations(&self) -> impl Iterator<Item = &ShapeID>
[src]
Return an iterator over all elements in this member's collection.
pub fn add_collection_operation(&mut self, collection_operation: ShapeID)
[src]
Add an element to this member's collection.
pub fn append_collection_operations(
&mut self,
collection_operations: &[ShapeID]
)
[src]
&mut self,
collection_operations: &[ShapeID]
)
Add all these elements to this member's collection.
pub fn remove_collection_operation(&mut self, collection_operation: &ShapeID)
[src]
Remove an element, with the given identifier, to this member's collection.
pub fn has_resources(&self) -> bool
[src]
Returns true
if this member's collection has any elements, else false
.
pub fn resources(&self) -> impl Iterator<Item = &ShapeID>
[src]
Return an iterator over all elements in this member's collection.
pub fn add_resource(&mut self, resource: ShapeID)
[src]
Add an element to this member's collection.
pub fn append_resources(&mut self, resources: &[ShapeID])
[src]
Add all these elements to this member's collection.
pub fn remove_resource(&mut self, resource: &ShapeID)
[src]
Remove an element, with the given identifier, to this member's collection.
Trait Implementations
impl Clone for Resource
[src]
impl Debug for Resource
[src]
impl Default for Resource
[src]
impl HasMembers for Resource
[src]
fn has_member_named(&self, member_name: &Identifier) -> bool
[src]
fn get_member_named(&self, member_name: &Identifier) -> Option<&Member>
[src]
fn set_member(&mut self, member: Member) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,