Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

ParsedSchematicDefinition

Struct ParsedSchematicDefinition 

Source
pub struct ParsedSchematicDefinition { /* private fields */ }
Expand description

Immutable definition issued only from a named parse or qualified packet replay. It has no canonical PCB binding, native allocation or selected-variant capability.

Implementations§

Source§

impl ParsedSchematicDefinition

Source

pub fn parse_named(path: &str, source: &str) -> Result<Self, SourceBundleError>

Parse once with the same Source parser and exact named limits used by documents.

Source

pub fn definition(&self) -> &SchematicDefinition

Read the actual issued definition, including its admitted sheet references.

Source

pub fn encode(&self) -> Result<Vec<u8>, SchematicDefinitionCacheError>

Encode only parsed carriers and their exact Source/profile receipts. The host additionally binds producer identity and atomically stores the packet.

Source

pub fn replay( path: &str, source: &str, packet: &[u8], ) -> Result<Self, SchematicDefinitionCacheError>

Replay against current named bytes and the exact definition parser profile. Private indexes/connectivity are omitted from transport and rebuilt locally.

Trait Implementations§

Source§

impl Debug for ParsedSchematicDefinition

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.