Struct DiodeSpec
pub struct DiodeSpec { /* private fields */ }Expand description
A descriptive diode specification.
Implementations§
§impl DiodeSpec
impl DiodeSpec
pub const fn forward_voltage(&self) -> Option<VoltageRating>
pub const fn forward_voltage(&self) -> Option<VoltageRating>
Returns the optional forward voltage metadata.
pub const fn reverse_voltage_rating(&self) -> Option<VoltageRating>
pub const fn reverse_voltage_rating(&self) -> Option<VoltageRating>
Returns the optional reverse voltage rating.
pub const fn current_rating(&self) -> Option<CurrentRating>
pub const fn current_rating(&self) -> Option<CurrentRating>
Returns the optional current rating.
pub const fn with_forward_voltage(
self,
forward_voltage: VoltageRating,
) -> DiodeSpec
pub const fn with_forward_voltage( self, forward_voltage: VoltageRating, ) -> DiodeSpec
Returns this spec with forward voltage metadata attached.
pub const fn with_reverse_voltage_rating(
self,
reverse_voltage: VoltageRating,
) -> DiodeSpec
pub const fn with_reverse_voltage_rating( self, reverse_voltage: VoltageRating, ) -> DiodeSpec
Returns this spec with reverse voltage rating metadata attached.
pub const fn with_current_rating(
self,
current_rating: CurrentRating,
) -> DiodeSpec
pub const fn with_current_rating( self, current_rating: CurrentRating, ) -> DiodeSpec
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