pub enum EncodeTo {
None,
ASCII,
EBCDIC,
IBM,
OLD_ASCII,
OLD_EBCDIC,
OLD_IBM,
}
Expand description
The Encoding to convert to. EncodeTo::ASCII
and EncodeTo::OLD_ASCII
assume that the source file is encoded in classic EBCDIC
,
while IBM
, EBCDIC
, OLD_IBM
, and OLD_EBCDIC
assume that the source
file is encoded in modern (that is, post-1967) ASCII
Variants
None
ASCII
Convert to ASCII from EBCDIC
EBCDIC
Convert to EBCDIC from ASCII
IBM
OLD_ASCII
OLD_EBCDIC
OLD_IBM
Trait Implementations
sourceimpl ConvertSlice<u8> for EncodeTo
impl ConvertSlice<u8> for EncodeTo
sourcefn convert_slice(&self, s: &mut [u8])
fn convert_slice(&self, s: &mut [u8])
modify a slice of
T
in-place.sourceimpl Ord for EncodeTo
impl Ord for EncodeTo
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<EncodeTo> for EncodeTo
impl PartialOrd<EncodeTo> for EncodeTo
sourcefn partial_cmp(&self, other: &EncodeTo) -> Option<Ordering>
fn partial_cmp(&self, other: &EncodeTo) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EncodeTo
impl Eq for EncodeTo
impl StructuralEq for EncodeTo
impl StructuralPartialEq for EncodeTo
Auto Trait Implementations
impl RefUnwindSafe for EncodeTo
impl Send for EncodeTo
impl Sync for EncodeTo
impl Unpin for EncodeTo
impl UnwindSafe for EncodeTo
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