pub struct Pattern { /* private fields */ }Expand description
Immutable, validated reusable graph fragment.
Implementations§
Source§impl Pattern
impl Pattern
Sourcepub fn inputs(&self) -> &[PatternExportDef]
pub fn inputs(&self) -> &[PatternExportDef]
Input exports the parent must wire after include.
Sourcepub fn outputs(&self) -> &[PatternExportDef]
pub fn outputs(&self) -> &[PatternExportDef]
Output exports available as parent sources.
Sourcepub fn to_def(&self) -> PatternDef
pub fn to_def(&self) -> PatternDef
Clone into the serializable definition form.
Trait Implementations§
Source§impl From<Pattern> for PatternDef
impl From<Pattern> for PatternDef
impl StructuralPartialEq for Pattern
Source§impl TryFrom<PatternDef> for Pattern
impl TryFrom<PatternDef> for Pattern
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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