pub struct ComponentDef {
pub id: String,
pub kind: Box<dyn Component>,
}Expand description
A single component declaration, e.g. R1: resistor(4.7k)
Fields§
§id: String§kind: Box<dyn Component>Trait Implementations§
Source§impl Clone for ComponentDef
impl Clone for ComponentDef
Source§fn clone(&self) -> ComponentDef
fn clone(&self) -> ComponentDef
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 ComponentDef
impl Debug for ComponentDef
Source§impl PartialEq for ComponentDef
impl PartialEq for ComponentDef
Auto Trait Implementations§
impl !RefUnwindSafe for ComponentDef
impl !Send for ComponentDef
impl !Sync for ComponentDef
impl !UnwindSafe for ComponentDef
impl Freeze for ComponentDef
impl Unpin for ComponentDef
impl UnsafeUnpin for ComponentDef
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