pub enum LinkageType {
Internal,
External,
Include,
BuiltIn,
}Variants§
Internal
The element is declared in the project currently being complied
External
The element is declared externally and being used by the project
Include
This indicates an element has been included as part of the library. This is equivalant to external in almost all cases. The only difference is when code is in constructor functions where an external function can get a constructor, while an included function will not. See compile flag ´generate-external-constructors´
BuiltIn
This indicates an element that should not have any declarations within the compiled project For example a built in function is implied to exist but not declared
Implementations§
Source§impl LinkageType
impl LinkageType
pub fn is_external_or_included(&self) -> bool
pub fn is_external(&self) -> bool
pub fn is_included(&self) -> bool
pub fn is_built_in(&self) -> bool
Trait Implementations§
Source§impl Clone for LinkageType
impl Clone for LinkageType
Source§fn clone(&self) -> LinkageType
fn clone(&self) -> LinkageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LinkageType
impl Debug for LinkageType
Source§impl<'de> Deserialize<'de> for LinkageType
impl<'de> Deserialize<'de> for LinkageType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for LinkageType
impl Hash for LinkageType
Source§impl PartialEq for LinkageType
impl PartialEq for LinkageType
Source§fn eq(&self, other: &LinkageType) -> bool
fn eq(&self, other: &LinkageType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LinkageType
impl Serialize for LinkageType
impl Copy for LinkageType
impl Eq for LinkageType
impl StructuralPartialEq for LinkageType
Auto Trait Implementations§
impl Freeze for LinkageType
impl RefUnwindSafe for LinkageType
impl Send for LinkageType
impl Sync for LinkageType
impl Unpin for LinkageType
impl UnsafeUnpin for LinkageType
impl UnwindSafe for LinkageType
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