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

SchematicAnnotationSourceView

Struct SchematicAnnotationSourceView 

Source
pub struct SchematicAnnotationSourceView<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> SchematicAnnotationSourceView<'a>

Source

pub fn contacts( &self, annotations: &[&SchematicNativeAnnotation<'a>], pins: &[&SchematicNativePowerPin<'a>], pin_context: &SchematicNativePinContext<'a>, wire_ordinals: &[usize], junction_ordinals: &[usize], ) -> Result<SchematicAnnotationContacts, SourceBundleError>

Authorize native incidence before filtering to the caller’s retained targets. Every native source line/annotation participates in context. No supplied handle, coordinate, UUID or model identity can invent it.

Source§

impl<'a> SchematicAnnotationSourceView<'a>

Source

pub fn directive_presentation( &self, selector: SchematicAnnotationSelector, ) -> Result<Option<SchematicDirectivePresentation>, SourceBundleError>

KiCad10.0.5 SCH_DIRECTIVE_LABEL::CreateGraphicShape/Plot: fixed20mil symbol, authored/default100mil stem, loaded text spin and standalone pen. Fields keep their own separately authored positions/effects.

Source

pub fn named_presentation( &self, selector: SchematicAnnotationSelector, ) -> Result<Option<SchematicNamedPresentation>, SourceBundleError>

Fixed standalone default paint; no graph/project/child/native execution.

Source§

impl<'a> SchematicAnnotationSourceView<'a>

Source

pub fn pin_context_without_selections( &self, ) -> Result<SchematicNativePinContext<'a>, SourceBundleError>

Checked original placement absence is independent of pin/root/version readability. Any original placement makes this context incomplete and grants no pin target; no selection or pin resolver is invoked here.

Source

pub fn selectors( &self, ) -> impl ExactSizeIterator<Item = SchematicAnnotationSelector> + '_

Source

pub fn record( &self, selector: SchematicAnnotationSelector, ) -> Result<Option<SchematicAuthoredAnnotationRecord<'a>>, SourceBundleError>

Trait Implementations§

Source§

impl<'a> Debug for SchematicAnnotationSourceView<'a>

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.