pub struct ResourceLogic {
pub resources: Vec<String>,
}Expand description
Resource logic: linear logic as a logic of resource consumption.
Fields§
§resources: Vec<String>Named resources available.
Implementations§
Source§impl ResourceLogic
impl ResourceLogic
Sourcepub fn resource_consumption_model(&self) -> String
pub fn resource_consumption_model(&self) -> String
Resource consumption model: a process consumes resources from the context linearly (no copying).
Sourcepub fn separation_logic_connection(&self) -> String
pub fn separation_logic_connection(&self) -> String
Connection to separation logic:
the separating conjunction * in BI logic corresponds to tensor ⊗.
Sourcepub fn has_resource(&self, name: &str) -> bool
pub fn has_resource(&self, name: &str) -> bool
Check if a given resource is available.
Trait Implementations§
Source§impl Clone for ResourceLogic
impl Clone for ResourceLogic
Source§fn clone(&self) -> ResourceLogic
fn clone(&self) -> ResourceLogic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResourceLogic
impl RefUnwindSafe for ResourceLogic
impl Send for ResourceLogic
impl Sync for ResourceLogic
impl Unpin for ResourceLogic
impl UnsafeUnpin for ResourceLogic
impl UnwindSafe for ResourceLogic
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