enum UseStyle {
Anon {
parent_func: Option<Func>,
idx: usize,
},
Named {
parent_func: Option<Func>,
name: String,
},
Inline,
}
Expand description
How an Use
of a definition should be printed.
Variants§
Anon
Fields
§
parent_func: Option<Func>
For intra-function Use
s (i.e. Use::ControlRegionLabel
and values),
this disambiguates the parent function (for e.g. anchors).
Refer to the definition by its name prefix and an idx
(e.g. “T123”).
Named
Fields
§
parent_func: Option<Func>
For intra-function Use
s (i.e. Use::ControlRegionLabel
and values),
this disambiguates the parent function (for e.g. anchors).
Refer to the definition by its name prefix and a name
(e.g. “TFoo
”).
Inline
Print the definition inline at the use site.
Auto Trait Implementations§
impl RefUnwindSafe for UseStyle
impl Send for UseStyle
impl Sync for UseStyle
impl Unpin for UseStyle
impl UnwindSafe for UseStyle
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