Enum tm4c123x_hal::serial::NewlineMode
source · pub enum NewlineMode {
Binary,
SwapLFtoCRLF,
}
Expand description
writeln!() emits LF chars, so this is useful if you’re writing text with your UART
Variants
Binary
Emit octets as received
SwapLFtoCRLF
Emit an extra CR before every LF
Trait Implementations
sourceimpl Clone for NewlineMode
impl Clone for NewlineMode
sourcefn clone(&self) -> NewlineMode
fn clone(&self) -> NewlineMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<NewlineMode> for NewlineMode
impl PartialEq<NewlineMode> for NewlineMode
sourcefn eq(&self, other: &NewlineMode) -> bool
fn eq(&self, other: &NewlineMode) -> bool
impl Copy for NewlineMode
impl StructuralPartialEq for NewlineMode
Auto Trait Implementations
impl RefUnwindSafe for NewlineMode
impl Send for NewlineMode
impl Sync for NewlineMode
impl Unpin for NewlineMode
impl UnwindSafe for NewlineMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more