pub struct ChargedFilament {
pub density_g_cm3: f64,
pub diameter_mm: f64,
pub grams: f64,
pub remaining_after_g: f64,
pub remaining_before_g: f64,
pub spool_id: SpoolId,
}Expand description
What a charge took from a spool, and the whole calculation behind it.
Present or absent as one: a debit names its spool exactly when it carries the grams, the figures they were worked out with, and the spool’s figure either side of them.
Fields§
§density_g_cm3: f64The density the grams were worked out with, in grams per cubic centimetre.
diameter_mm: f64The diameter the grams were worked out with, in millimetres.
grams: f64What the length weighs, in grams; what is subtracted from the spool.
remaining_after_g: f64The spool’s figure after it, in grams.
remaining_before_g: f64The spool’s figure before the charge, in grams.
spool_id: SpoolIdThe spool charged.
Trait Implementations§
Source§impl Clone for ChargedFilament
impl Clone for ChargedFilament
Source§impl Debug for ChargedFilament
impl Debug for ChargedFilament
Source§impl<'de> Deserialize<'de> for ChargedFilament
impl<'de> Deserialize<'de> for ChargedFilament
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChargedFilament
impl PartialEq for ChargedFilament
Source§impl Serialize for ChargedFilament
impl Serialize for ChargedFilament
impl StructuralPartialEq for ChargedFilament
Auto Trait Implementations§
impl Freeze for ChargedFilament
impl RefUnwindSafe for ChargedFilament
impl Send for ChargedFilament
impl Sync for ChargedFilament
impl Unpin for ChargedFilament
impl UnsafeUnpin for ChargedFilament
impl UnwindSafe for ChargedFilament
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