pub struct ParameterGroupSpec { /* private fields */ }Expand description
Atomic logical parameter and all of its physical checkpoint companions.
Implementations§
Source§impl ParameterGroupSpec
impl ParameterGroupSpec
Sourcepub fn new(
logical_name: impl Into<String>,
role: ParameterRole,
members: impl IntoIterator<Item = ParameterMemberSpec>,
) -> Result<Self, ParallelPlanError>
pub fn new( logical_name: impl Into<String>, role: ParameterRole, members: impl IntoIterator<Item = ParameterMemberSpec>, ) -> Result<Self, ParallelPlanError>
Creates a non-empty logical group.
Sourcepub fn partitioned(
logical_name: impl Into<String>,
role: ParameterRole,
units: usize,
members: impl IntoIterator<Item = ParameterMemberSpec>,
) -> Result<Self, ParallelPlanError>
pub fn partitioned( logical_name: impl Into<String>, role: ParameterRole, units: usize, members: impl IntoIterator<Item = ParameterMemberSpec>, ) -> Result<Self, ParallelPlanError>
Creates a group whose partitioned members share one logical domain.
Sourcepub fn logical_name(&self) -> &str
pub fn logical_name(&self) -> &str
Returns the stable logical name.
Sourcepub const fn role(&self) -> ParameterRole
pub const fn role(&self) -> ParameterRole
Returns the semantic role.
Sourcepub const fn partition_units(&self) -> Option<usize>
pub const fn partition_units(&self) -> Option<usize>
Returns the shared logical-unit count, when the group is partitioned.
Sourcepub fn members(&self) -> &[ParameterMemberSpec]
pub fn members(&self) -> &[ParameterMemberSpec]
Returns physical checkpoint members.
Trait Implementations§
Source§impl Clone for ParameterGroupSpec
impl Clone for ParameterGroupSpec
Source§fn clone(&self) -> ParameterGroupSpec
fn clone(&self) -> ParameterGroupSpec
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 ParameterGroupSpec
impl Debug for ParameterGroupSpec
impl Eq for ParameterGroupSpec
Source§impl PartialEq for ParameterGroupSpec
impl PartialEq for ParameterGroupSpec
impl StructuralPartialEq for ParameterGroupSpec
Auto Trait Implementations§
impl Freeze for ParameterGroupSpec
impl RefUnwindSafe for ParameterGroupSpec
impl Send for ParameterGroupSpec
impl Sync for ParameterGroupSpec
impl Unpin for ParameterGroupSpec
impl UnsafeUnpin for ParameterGroupSpec
impl UnwindSafe for ParameterGroupSpec
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