pub struct ConversionLoss {
pub kind: ConversionLossKind,
pub object: Option<ObjectId>,
pub detail: String,
}Expand description
One explicit, identity-addressed conversion loss.
Fields§
§kind: ConversionLossKindStable loss classification.
object: Option<ObjectId>Closest affected identity, when one exists.
detail: StringHuman-readable exact reason.
Implementations§
Source§impl ConversionLoss
impl ConversionLoss
Sourcepub fn new(
kind: ConversionLossKind,
object: Option<ObjectId>,
detail: impl Into<String>,
) -> Self
pub fn new( kind: ConversionLossKind, object: Option<ObjectId>, detail: impl Into<String>, ) -> Self
Builds one conversion loss with an optional affected score identity.
Conversion owners outside sim-lib-music-core use this constructor when
they reuse MusicConversion for another exact music representation.
Trait Implementations§
Source§impl Clone for ConversionLoss
impl Clone for ConversionLoss
Source§fn clone(&self) -> ConversionLoss
fn clone(&self) -> ConversionLoss
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 ConversionLoss
impl Debug for ConversionLoss
impl Eq for ConversionLoss
Source§impl PartialEq for ConversionLoss
impl PartialEq for ConversionLoss
impl StructuralPartialEq for ConversionLoss
Auto Trait Implementations§
impl Freeze for ConversionLoss
impl RefUnwindSafe for ConversionLoss
impl Send for ConversionLoss
impl Sync for ConversionLoss
impl Unpin for ConversionLoss
impl UnsafeUnpin for ConversionLoss
impl UnwindSafe for ConversionLoss
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