pub enum TestExportVariant {
A,
B,
}Variants§
A
Body is compiled unconditionally; only the -export is
guarded. Stale non-TEST .beam still has the function code
but not in its export table.
B
Body is also inside an -ifdef(TEST) block. The function
does not exist in a non-TEST .beam at all.
Implementations§
Trait Implementations§
Source§impl Clone for TestExportVariant
impl Clone for TestExportVariant
Source§fn clone(&self) -> TestExportVariant
fn clone(&self) -> TestExportVariant
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 moreimpl Copy for TestExportVariant
Source§impl Debug for TestExportVariant
impl Debug for TestExportVariant
Source§impl<'de> Deserialize<'de> for TestExportVariant
impl<'de> Deserialize<'de> for TestExportVariant
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
impl Eq for TestExportVariant
Source§impl Hash for TestExportVariant
impl Hash for TestExportVariant
Source§impl PartialEq for TestExportVariant
impl PartialEq for TestExportVariant
Source§impl Serialize for TestExportVariant
impl Serialize for TestExportVariant
impl StructuralPartialEq for TestExportVariant
Auto Trait Implementations§
impl Freeze for TestExportVariant
impl RefUnwindSafe for TestExportVariant
impl Send for TestExportVariant
impl Sync for TestExportVariant
impl Unpin for TestExportVariant
impl UnsafeUnpin for TestExportVariant
impl UnwindSafe for TestExportVariant
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