pub enum LegalComment {
None,
Inline,
Eof,
Linked(String),
External,
}Expand description
Legal comment
Variants§
None
Do not preserve any legal comments.
Inline
Preserve all legal comments (default).
Eof
Move all legal comments to the end of the file.
Linked(String)
Return all legal comments and link then to them with a comment to the provided string.
External
Move all legal comments to a .LEGAL.txt file but to not link to them.
Implementations§
Trait Implementations§
Source§impl Clone for LegalComment
impl Clone for LegalComment
Source§impl Debug for LegalComment
impl Debug for LegalComment
Source§impl Default for LegalComment
impl Default for LegalComment
impl Eq for LegalComment
Source§impl PartialEq for LegalComment
impl PartialEq for LegalComment
impl StructuralPartialEq for LegalComment
Auto Trait Implementations§
impl Freeze for LegalComment
impl RefUnwindSafe for LegalComment
impl Send for LegalComment
impl Sync for LegalComment
impl Unpin for LegalComment
impl UnsafeUnpin for LegalComment
impl UnwindSafe for LegalComment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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