pub struct ProfilePartRule {
pub kind: Symbol,
pub count: ProfilePartCount,
}Expand description
One part-kind rule in a BRIDGE profile.
Fields§
§kind: SymbolRequired part kind.
count: ProfilePartCountRepetition rule.
Implementations§
Source§impl ProfilePartRule
impl ProfilePartRule
Sourcepub fn new(kind: Symbol, count: ProfilePartCount) -> Self
pub fn new(kind: Symbol, count: ProfilePartCount) -> Self
Builds a profile part rule.
Trait Implementations§
Source§impl Clone for ProfilePartRule
impl Clone for ProfilePartRule
Source§fn clone(&self) -> ProfilePartRule
fn clone(&self) -> ProfilePartRule
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 ProfilePartRule
impl Debug for ProfilePartRule
impl Eq for ProfilePartRule
Source§impl PartialEq for ProfilePartRule
impl PartialEq for ProfilePartRule
impl StructuralPartialEq for ProfilePartRule
Auto Trait Implementations§
impl Freeze for ProfilePartRule
impl RefUnwindSafe for ProfilePartRule
impl Send for ProfilePartRule
impl Sync for ProfilePartRule
impl Unpin for ProfilePartRule
impl UnsafeUnpin for ProfilePartRule
impl UnwindSafe for ProfilePartRule
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