pub struct EmitOptions {
pub ctor_style: CtorStyle,
pub type_name: Option<fn(&str) -> String>,
pub value_name: Option<fn(&str) -> String>,
pub ctor_name: Option<fn(&str) -> String>,
pub module_segment: Option<fn(&str) -> String>,
pub generated: Option<fn(&str) -> Vec<String>>,
pub type_space: bool,
pub modules_share_term_space: bool,
pub modules_share_type_space: bool,
pub root_reserved: &'static [&'static str],
}Expand description
Target naming rules for EmitState.
Fields§
§ctor_style: CtorStyle§type_name: Option<fn(&str) -> String>§value_name: Option<fn(&str) -> String>§ctor_name: Option<fn(&str) -> String>§module_segment: Option<fn(&str) -> String>§generated: Option<fn(&str) -> Vec<String>>Names the target itself derives from a declaration (Rocq’s f_equation, T_ind).
type_space: bool§root_reserved: &'static [&'static str]Names root declarations may not take because the target’s prelude has them.
Trait Implementations§
Source§impl Clone for EmitOptions
impl Clone for EmitOptions
Source§fn clone(&self) -> EmitOptions
fn clone(&self) -> EmitOptions
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 EmitOptions
Source§impl Default for EmitOptions
impl Default for EmitOptions
Source§fn default() -> EmitOptions
fn default() -> EmitOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmitOptions
impl RefUnwindSafe for EmitOptions
impl Send for EmitOptions
impl Sync for EmitOptions
impl Unpin for EmitOptions
impl UnsafeUnpin for EmitOptions
impl UnwindSafe for EmitOptions
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.