#[non_exhaustive]pub struct McOpfTransformerCoil {
pub positive: usize,
pub negative: Option<usize>,
}Expand description
A winding coil oriented from positive to negative, with a retained current unknown.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.positive: usizeGlobal positive terminal index.
negative: Option<usize>Global negative terminal index, or physical ground.
Trait Implementations§
Source§impl Clone for McOpfTransformerCoil
impl Clone for McOpfTransformerCoil
Source§impl Debug for McOpfTransformerCoil
impl Debug for McOpfTransformerCoil
Source§impl<'de> Deserialize<'de> for McOpfTransformerCoil
impl<'de> Deserialize<'de> for McOpfTransformerCoil
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
Auto Trait Implementations§
impl Freeze for McOpfTransformerCoil
impl RefUnwindSafe for McOpfTransformerCoil
impl Send for McOpfTransformerCoil
impl Sync for McOpfTransformerCoil
impl Unpin for McOpfTransformerCoil
impl UnsafeUnpin for McOpfTransformerCoil
impl UnwindSafe for McOpfTransformerCoil
Blanket Implementations§
impl<T> Allocation for T
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