#[non_exhaustive]pub enum Line {
Note(&'static [&'static str]),
Command(&'static str),
}Expand description
One line of a refusal.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Note(&'static [&'static str])
Prose, as fragments joined by a single space.
A list rather than one wrapped literal — see the module documentation. Write one source line per fragment and let the join do the wrapping.
Command(&'static str)
Something the reader is meant to copy, rendered exactly as written.
Its internal whitespace is content, so nothing here is normalised. That is also why it is a single literal rather than fragments: a command that needed wrapping is a command nobody can paste.
Trait Implementations§
impl Copy for Line
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.