pub enum CommentPlacement {
Above,
Right,
Free,
Last,
}Expand description
Placement reported for a source comment.
Variants§
Above
Comment immediately above the associated syntax.
Right
Comment to the right of syntax on the same line.
Free
Free-standing comment.
Last
Comment after the last item in a collection.
Trait Implementations§
Source§impl Clone for CommentPlacement
impl Clone for CommentPlacement
Source§fn clone(&self) -> CommentPlacement
fn clone(&self) -> CommentPlacement
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 CommentPlacement
Source§impl Debug for CommentPlacement
impl Debug for CommentPlacement
impl Eq for CommentPlacement
Source§impl PartialEq for CommentPlacement
impl PartialEq for CommentPlacement
impl StructuralPartialEq for CommentPlacement
Auto Trait Implementations§
impl Freeze for CommentPlacement
impl RefUnwindSafe for CommentPlacement
impl Send for CommentPlacement
impl Sync for CommentPlacement
impl Unpin for CommentPlacement
impl UnsafeUnpin for CommentPlacement
impl UnwindSafe for CommentPlacement
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