pub enum CodecPlacement {
AtDeclarationSite,
PublishedModule {
spelling: ModuleSpelling,
},
}Expand description
What shape the rendered surface lands in.
§Bounds
Both rows are declaration-site deliveries, so the delivery is the seat’s constant answer under either and what this decides is the surface’s shape alone.
Variants§
AtDeclarationSite
Spliced beside the owner’s own item, in the scope the declaration sits in.
PublishedModule
Wrapped in a visibly published module, whose head imports the scope the module sits in.
Fields
§
spelling: ModuleSpellingThe module’s declared spelling.
Trait Implementations§
Source§impl Clone for CodecPlacement
impl Clone for CodecPlacement
Source§fn clone(&self) -> CodecPlacement
fn clone(&self) -> CodecPlacement
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 CodecPlacement
impl Debug for CodecPlacement
impl Eq for CodecPlacement
Source§impl Hash for CodecPlacement
impl Hash for CodecPlacement
Source§impl PartialEq for CodecPlacement
impl PartialEq for CodecPlacement
impl StructuralPartialEq for CodecPlacement
Auto Trait Implementations§
impl Freeze for CodecPlacement
impl RefUnwindSafe for CodecPlacement
impl Send for CodecPlacement
impl Sync for CodecPlacement
impl Unpin for CodecPlacement
impl UnsafeUnpin for CodecPlacement
impl UnwindSafe for CodecPlacement
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