pub struct SchPowerObject {
pub graphical: SchGraphicalBase,
pub style: PowerObjectStyle,
pub orientation: TextOrientations,
pub text: String,
pub show_net_name: bool,
pub font_id: i32,
pub unknown_params: UnknownFields,
}Expand description
Schematic power object primitive (power/ground symbols).
Fields§
§graphical: SchGraphicalBaseGraphical base (location, color).
style: PowerObjectStylePower object style.
orientation: TextOrientationsOrientation.
text: StringNet/text.
show_net_name: boolWhether to show net name.
font_id: i32Font ID.
unknown_params: UnknownFieldsUnknown parameters (preserved for non-destructive editing).
Trait Implementations§
Source§impl AltiumRecord for SchPowerObject
impl AltiumRecord for SchPowerObject
Source§fn record_type_name() -> &'static str
fn record_type_name() -> &'static str
Human-readable name for this record type.
Source§fn supports_unknown_preservation() -> bool
fn supports_unknown_preservation() -> bool
Whether this record type supports unknown field preservation.
Source§impl Clone for SchPowerObject
impl Clone for SchPowerObject
Source§fn clone(&self) -> SchPowerObject
fn clone(&self) -> SchPowerObject
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 SchPowerObject
impl Debug for SchPowerObject
Source§impl Default for SchPowerObject
impl Default for SchPowerObject
Source§fn default() -> SchPowerObject
fn default() -> SchPowerObject
Returns the “default value” for a type. Read more
Source§impl DumpTree for SchPowerObject
impl DumpTree for SchPowerObject
Source§fn dump(&self, tree: &mut TreeBuilder)
fn dump(&self, tree: &mut TreeBuilder)
Dump this item to the tree builder.
Source§fn dump_to_string(&self) -> String
fn dump_to_string(&self) -> String
Convenience method to dump to a string.
Source§fn dump_to_string_with_options(&self, options: DumpOptions) -> String
fn dump_to_string_with_options(&self, options: DumpOptions) -> String
Convenience method to dump to a string with options.
Source§impl FromParams for SchPowerObject
impl FromParams for SchPowerObject
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 SchPrimitive for SchPowerObject
impl SchPrimitive for SchPowerObject
Source§fn location(&self) -> Option<CoordPoint>
fn location(&self) -> Option<CoordPoint>
Get the location (if applicable).
Source§fn record_type_name(&self) -> &'static str
fn record_type_name(&self) -> &'static str
Get the record type name for diagnostics.
Source§fn get_property(&self, name: &str) -> Option<String>
fn get_property(&self, name: &str) -> Option<String>
Get a property value by name (for generic queries).
Source§fn import_from_params(params: &ParameterCollection) -> Result<Self>
fn import_from_params(params: &ParameterCollection) -> Result<Self>
Import primitive data from parameters.
Source§fn export_to_params(&self) -> ParameterCollection
fn export_to_params(&self) -> ParameterCollection
Export primitive data to parameters.
Source§fn owner_index(&self) -> i32
fn owner_index(&self) -> i32
Get the owner index (index of parent primitive in the list).
Source§fn calculate_bounds(&self) -> CoordRect
fn calculate_bounds(&self) -> CoordRect
Calculate the bounding rectangle.
Source§impl ToParams for SchPowerObject
impl ToParams for SchPowerObject
Source§fn to_params(&self) -> ParameterCollection
fn to_params(&self) -> ParameterCollection
Export this type to a new parameter collection.
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
Auto Trait Implementations§
impl Freeze for SchPowerObject
impl RefUnwindSafe for SchPowerObject
impl Send for SchPowerObject
impl Sync for SchPowerObject
impl Unpin for SchPowerObject
impl UnwindSafe for SchPowerObject
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