pub struct PartitionOwnership { /* private fields */ }Expand description
Input, output, and pinned static-module ownership for one partition.
Implementations§
Source§impl PartitionOwnership
impl PartitionOwnership
Sourcepub fn new(
input: bool,
output: bool,
static_roles: impl IntoIterator<Item = impl Into<String>>,
) -> Result<Self, ArchitecturePartitionError>
pub fn new( input: bool, output: bool, static_roles: impl IntoIterator<Item = impl Into<String>>, ) -> Result<Self, ArchitecturePartitionError>
Creates validated boundary and static-module ownership.
Sourcepub const fn owns_input(&self) -> bool
pub const fn owns_input(&self) -> bool
Returns whether this partition owns model input preparation.
Sourcepub const fn owns_output(&self) -> bool
pub const fn owns_output(&self) -> bool
Returns whether this partition owns model output production.
Sourcepub fn static_roles(&self) -> &[String]
pub fn static_roles(&self) -> &[String]
Returns pinned static roles in architecture declaration order.
Sourcepub fn owns_static_role(&self, role: &str) -> bool
pub fn owns_static_role(&self, role: &str) -> bool
Returns whether this partition owns a named pinned static role.
Trait Implementations§
Source§impl Clone for PartitionOwnership
impl Clone for PartitionOwnership
Source§fn clone(&self) -> PartitionOwnership
fn clone(&self) -> PartitionOwnership
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionOwnership
impl Debug for PartitionOwnership
impl Eq for PartitionOwnership
Source§impl PartialEq for PartitionOwnership
impl PartialEq for PartitionOwnership
impl StructuralPartialEq for PartitionOwnership
Auto Trait Implementations§
impl Freeze for PartitionOwnership
impl RefUnwindSafe for PartitionOwnership
impl Send for PartitionOwnership
impl Sync for PartitionOwnership
impl Unpin for PartitionOwnership
impl UnsafeUnpin for PartitionOwnership
impl UnwindSafe for PartitionOwnership
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