pub struct SchPrimitiveBase {
pub owner_index: i32,
pub is_not_accessible: bool,
pub owner_part_id: Option<i32>,
pub owner_part_display_mode: Option<i32>,
pub graphically_locked: bool,
}Expand description
Common fields shared by all schematic primitives.
Fields§
§owner_index: i32Index of owner primitive in the component’s primitive list.
is_not_accessible: boolWhether the primitive is not accessible.
owner_part_id: Option<i32>Owner part ID (for multi-part symbols).
owner_part_display_mode: Option<i32>Owner display mode (for symbols with multiple display modes).
graphically_locked: boolWhether the primitive is graphically locked.
Implementations§
Source§impl SchPrimitiveBase
impl SchPrimitiveBase
Sourcepub fn import_from_params(params: &ParameterCollection) -> Self
pub fn import_from_params(params: &ParameterCollection) -> Self
Import base fields from parameters.
Sourcepub fn export_to_params(&self, params: &mut ParameterCollection)
pub fn export_to_params(&self, params: &mut ParameterCollection)
Export base fields to parameters.
Sourcepub fn owner_index(&self) -> i32
pub fn owner_index(&self) -> i32
Get the owner index.
Sourcepub fn set_owner_index(&mut self, index: i32)
pub fn set_owner_index(&mut self, index: i32)
Set the owner index.
Trait Implementations§
Source§impl Clone for SchPrimitiveBase
impl Clone for SchPrimitiveBase
Source§fn clone(&self) -> SchPrimitiveBase
fn clone(&self) -> SchPrimitiveBase
Returns a duplicate of the value. Read more
1.0.0 · 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 SchPrimitiveBase
impl Debug for SchPrimitiveBase
Source§impl Default for SchPrimitiveBase
impl Default for SchPrimitiveBase
Source§impl FromParams for SchPrimitiveBase
impl FromParams for SchPrimitiveBase
Source§fn from_params(params: &ParameterCollection) -> Result<Self>
fn from_params(params: &ParameterCollection) -> Result<Self>
Parse this type from a parameter collection.
Source§fn from_params_preserving(
params: &ParameterCollection,
) -> Result<(Self, UnknownFields)>
fn from_params_preserving( params: &ParameterCollection, ) -> Result<(Self, UnknownFields)>
Parse this type and collect unknown parameters for non-destructive editing.
Source§impl ToParams for SchPrimitiveBase
impl ToParams for SchPrimitiveBase
Source§fn append_to_params(&self, params: &mut ParameterCollection)
fn append_to_params(&self, params: &mut ParameterCollection)
Append this type’s parameters to an existing collection. Read more
Source§fn to_params(&self) -> ParameterCollection
fn to_params(&self) -> ParameterCollection
Export this type to a new parameter collection.
Auto Trait Implementations§
impl Freeze for SchPrimitiveBase
impl RefUnwindSafe for SchPrimitiveBase
impl Send for SchPrimitiveBase
impl Sync for SchPrimitiveBase
impl Unpin for SchPrimitiveBase
impl UnwindSafe for SchPrimitiveBase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more