#[non_exhaustive]pub enum ParameterGroupOwner {
StaticRole(String),
StaticAnyOf(Vec<String>),
#[non_exhaustive] ExecutionUnit {
group: ExecutionGroupId,
global_unit: usize,
},
}Expand description
Architecture-owned location of one neutral parameter group.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StaticRole(String)
A pinned module selected by an explicit architecture static role.
StaticAnyOf(Vec<String>)
A shared pinned module selected when any declared static consumer is local.
#[non_exhaustive]ExecutionUnit
One architecture-global unit in a canonical execution group.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
group: ExecutionGroupIdCanonical execution-group identity.
Implementations§
Source§impl ParameterGroupOwner
impl ParameterGroupOwner
Sourcepub fn static_role(role: impl Into<String>) -> Self
pub fn static_role(role: impl Into<String>) -> Self
Creates static-module ownership with a stable, non-empty role.
Sourcepub fn static_any_of(roles: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn static_any_of(roles: impl IntoIterator<Item = impl Into<String>>) -> Self
Creates shared static-module ownership across explicit consumer roles.
Sourcepub fn execution_unit(group: ExecutionGroupId, global_unit: usize) -> Self
pub fn execution_unit(group: ExecutionGroupId, global_unit: usize) -> Self
Creates execution-unit ownership in the architecture-global index space.
Trait Implementations§
Source§impl Clone for ParameterGroupOwner
impl Clone for ParameterGroupOwner
Source§fn clone(&self) -> ParameterGroupOwner
fn clone(&self) -> ParameterGroupOwner
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 ParameterGroupOwner
impl Debug for ParameterGroupOwner
impl Eq for ParameterGroupOwner
Source§impl Ord for ParameterGroupOwner
impl Ord for ParameterGroupOwner
Source§fn cmp(&self, other: &ParameterGroupOwner) -> Ordering
fn cmp(&self, other: &ParameterGroupOwner) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ParameterGroupOwner
impl PartialEq for ParameterGroupOwner
Source§impl PartialOrd for ParameterGroupOwner
impl PartialOrd for ParameterGroupOwner
impl StructuralPartialEq for ParameterGroupOwner
Auto Trait Implementations§
impl Freeze for ParameterGroupOwner
impl RefUnwindSafe for ParameterGroupOwner
impl Send for ParameterGroupOwner
impl Sync for ParameterGroupOwner
impl Unpin for ParameterGroupOwner
impl UnsafeUnpin for ParameterGroupOwner
impl UnwindSafe for ParameterGroupOwner
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