pub struct DiodeSpec { /* private fields */ }Expand description
A descriptive diode specification.
Implementations§
Source§impl DiodeSpec
impl DiodeSpec
Sourcepub const fn forward_voltage(&self) -> Option<VoltageRating>
pub const fn forward_voltage(&self) -> Option<VoltageRating>
Returns the optional forward voltage metadata.
Sourcepub const fn reverse_voltage_rating(&self) -> Option<VoltageRating>
pub const fn reverse_voltage_rating(&self) -> Option<VoltageRating>
Returns the optional reverse voltage rating.
Sourcepub const fn current_rating(&self) -> Option<CurrentRating>
pub const fn current_rating(&self) -> Option<CurrentRating>
Returns the optional current rating.
Sourcepub const fn with_forward_voltage(self, forward_voltage: VoltageRating) -> Self
pub const fn with_forward_voltage(self, forward_voltage: VoltageRating) -> Self
Returns this spec with forward voltage metadata attached.
Sourcepub const fn with_reverse_voltage_rating(
self,
reverse_voltage: VoltageRating,
) -> Self
pub const fn with_reverse_voltage_rating( self, reverse_voltage: VoltageRating, ) -> Self
Returns this spec with reverse voltage rating metadata attached.
Sourcepub const fn with_current_rating(self, current_rating: CurrentRating) -> Self
pub const fn with_current_rating(self, current_rating: CurrentRating) -> Self
Returns this spec with current rating metadata attached.
Trait Implementations§
impl StructuralPartialEq for DiodeSpec
Auto Trait Implementations§
impl Freeze for DiodeSpec
impl RefUnwindSafe for DiodeSpec
impl Send for DiodeSpec
impl Sync for DiodeSpec
impl Unpin for DiodeSpec
impl UnsafeUnpin for DiodeSpec
impl UnwindSafe for DiodeSpec
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