pub enum AltiumFileType {
SchLib,
SchDoc,
PcbLib,
PcbDoc,
Unknown,
}Expand description
Detected Altium file type.
Variants§
SchLib
Schematic symbol library (.SchLib)
SchDoc
Schematic document (.SchDoc)
PcbLib
PCB footprint library (.PcbLib)
PcbDoc
PCB document (.PcbDoc)
Unknown
Unknown file type
Implementations§
Source§impl AltiumFileType
impl AltiumFileType
Sourcepub fn is_library(&self) -> bool
pub fn is_library(&self) -> bool
Returns true if this is a library file (SchLib or PcbLib).
Sourcepub fn is_schematic(&self) -> bool
pub fn is_schematic(&self) -> bool
Returns true if this is a schematic file (SchLib or SchDoc).
Trait Implementations§
Source§impl Clone for AltiumFileType
impl Clone for AltiumFileType
Source§fn clone(&self) -> AltiumFileType
fn clone(&self) -> AltiumFileType
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 AltiumFileType
impl Debug for AltiumFileType
Source§impl PartialEq for AltiumFileType
impl PartialEq for AltiumFileType
impl Copy for AltiumFileType
impl Eq for AltiumFileType
impl StructuralPartialEq for AltiumFileType
Auto Trait Implementations§
impl Freeze for AltiumFileType
impl RefUnwindSafe for AltiumFileType
impl Send for AltiumFileType
impl Sync for AltiumFileType
impl Unpin for AltiumFileType
impl UnwindSafe for AltiumFileType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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