#[non_exhaustive]pub enum MetadataPointers {
Enabled,
Disabled,
}Expand description
Whether the metadata section may use data-section pointers.
Pointers make the metadata marginally smaller by sharing repeated strings, but a few historic readers mishandle them. Disable to emit fully inline metadata.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enabled
Allow pointers in the metadata section. Default.
Disabled
Emit metadata without any pointers.
Trait Implementations§
Source§impl Clone for MetadataPointers
impl Clone for MetadataPointers
Source§fn clone(&self) -> MetadataPointers
fn clone(&self) -> MetadataPointers
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 MetadataPointers
Source§impl Debug for MetadataPointers
impl Debug for MetadataPointers
Source§impl Default for MetadataPointers
impl Default for MetadataPointers
Source§fn default() -> MetadataPointers
fn default() -> MetadataPointers
Returns the “default value” for a type. Read more
impl Eq for MetadataPointers
Source§impl Hash for MetadataPointers
impl Hash for MetadataPointers
Source§impl PartialEq for MetadataPointers
impl PartialEq for MetadataPointers
impl StructuralPartialEq for MetadataPointers
Auto Trait Implementations§
impl Freeze for MetadataPointers
impl RefUnwindSafe for MetadataPointers
impl Send for MetadataPointers
impl Sync for MetadataPointers
impl Unpin for MetadataPointers
impl UnsafeUnpin for MetadataPointers
impl UnwindSafe for MetadataPointers
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