Enum SupportedDcInputFormat
pub enum SupportedDcInputFormat {
Show 54 variants
AlphaSmartNeo,
AlphaSmartNeoLowCtlUaMac,
AlphaSmartNeoLowCtlUaPc,
AlphaSmartNeoLowCtlUs,
AlphaSmartNeoLowGrUaMac,
AlphaSmartNeoLowGrUaPc,
AlphaSmartNeoLowGrUs,
Ascii,
AsciiSafeSubset,
CdceLegacyStrict,
Cp437,
CscArchive,
CscArchive1,
CscArchive2,
CscJournal,
Csdl,
CtbNodeBundle,
CtbNodeBundle1,
CtbNodeBundle2,
CtbNodeIncoming,
CtbNodes,
DcIdList,
Dcal,
Dce,
Dce_3_01a,
Dce_3_01a_raw,
Dce_3_0a,
Dce_3_0a_raw,
Dce_3_01a_hex,
Dce_3_01a_raw_hex,
Dce_3_0a_hex,
Dce_3_0a_raw_hex,
DcIntegerList,
DcMixed,
DcMixed1,
DcMixed2,
Dcsh,
DcText,
DcTf,
Dcts,
DcUtf,
DceHex,
Iso88591,
CdceLegacy,
MacRoman,
Sems,
Utf8,
Utf8_Dc64,
Utf8_Dc64_bin,
Utf8_Dc64_bin_enc,
Utf8_Dc64_bin_enc_hex,
Utf8_Dc64_bin_hex,
Utf8_Dc64_enc,
Win1252,
}Expand description
Document and text formats supported for conversion to Document Character String (DcMstring / DcString).
Variants§
AlphaSmartNeo
AlphaSmart Neo encoding (has several variants)
AlphaSmartNeoLowCtlUaMac
AlphaSmart Neo, control low bytes, Ukraine (Mac)
AlphaSmartNeoLowCtlUaPc
AlphaSmart Neo, control low bytes, Ukraine (PC)
AlphaSmartNeoLowCtlUs
AlphaSmart Neo, control low bytes, USA
AlphaSmartNeoLowGrUaMac
AlphaSmart Neo, graphical low bytes, Ukraine (Mac)
AlphaSmartNeoLowGrUaPc
AlphaSmart Neo, graphical low bytes, Ukraine (PC)
AlphaSmartNeoLowGrUs
AlphaSmart Neo, graphical low bytes, USA
Ascii
ASCII
AsciiSafeSubset
Printable ASCII
CdceLegacyStrict
CDCE (legacy, strict)
Cp437
Code page 437 (CCSID 437)
CscArchive
Collective Toolbox csc archive
CscArchive1
Collective Toolbox csc archive, version 1
CscArchive2
Collective Toolbox csc archive, version 2
CscJournal
Collective Toolbox csc journal
Csdl
Comma-separated Dc list (long Dcs)
CtbNodeBundle
Collective Toolbox Node Bundle
CtbNodeBundle1
Collective Toolbox Node Bundle, version 1
CtbNodeBundle2
Collective Toolbox Node Bundle, version 2
CtbNodeIncoming
Collective Toolbox incoming graph node (shorthand text)
CtbNodes
Collective Toolbox graph nodes (shorthand text)
DcIdList
Dc ID list (ASCII)
Dcal
Dc ASCII List (long Dcs)
Dce
DCE (automatic version selection)
Dce_3_01a
DCE 3.01a
Dce_3_01a_raw
DCE 3.01a (raw)
Dce_3_0a
DCE 3.0a
Dce_3_0a_raw
DCE 3.0a (raw)
Dce_3_01a_hex
DCE 3.01a (hex-encoded)
Dce_3_01a_raw_hex
DCE 3.01a (raw hex-encoded)
Dce_3_0a_hex
DCE 3.0a (hex-encoded)
Dce_3_0a_raw_hex
DCE 3.0a (raw hex-encoded)
DcIntegerList
Dc Integer List (short Dcs)
DcMixed
Dc mixed mode
DcMixed1
Dc mixed mode, version 1 (DcUtf)
DcMixed2
Dc mixed mode, version 2 (DcTF)
Dcsh
Dc shorthand ASCII list
DcText
DcText
DcTf
DcTF (Dc Transformation Format)
Dcts
DcText short
DcUtf
DcUtf
DceHex
DCE (hex-encoded)
Iso88591
ISO 8859-1
CdceLegacy
CDCE (legacy)
MacRoman
MacRoman
Sems
SEMS (short Dcs)
Utf8
UTF-8
Utf8_Dc64
UTF-8 (Base64-encoded, ASCII Dc ID list)
Utf8_Dc64_bin
UTF-8 (Base64-encoded, DCE 3.01a+ encoding)
Utf8_Dc64_bin_enc
UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers)
Utf8_Dc64_bin_enc_hex
UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers; hex-encoded)
Utf8_Dc64_bin_hex
UTF-8 (Base64-encoded, DCE 3.01a+ encoding; hex-encoded)
Utf8_Dc64_enc
UTF-8 (Base64-encoded, ASCII Dc ID list; with headers)
Win1252
Windows-1252 (“ANSI”)
Implementations§
§impl SupportedDcInputFormat
impl SupportedDcInputFormat
pub const ALL: &'static [SupportedDcInputFormat]
pub const ALL: &'static [SupportedDcInputFormat]
Ordered list of all formats supported by this capability.
pub const ALL_FORMAT_IDS: &'static [FormatId]
pub const ALL_FORMAT_IDS: &'static [FormatId]
Ordered list of all canonical FormatIds supported by this capability.
pub const Dcil: SupportedDcInputFormat = Self::DcIntegerList
pub const Dcil: SupportedDcInputFormat = Self::DcIntegerList
Backward-compatible alias for Self::DcIntegerList.
pub const fn primary_cli_name(&self) -> &'static str
pub const fn primary_cli_name(&self) -> &'static str
Returns the primary CLI identifier for this format.
pub const fn to_format_id(&self) -> FormatId
pub const fn to_format_id(&self) -> FormatId
Maps this variant to the canonical global FormatId.
pub const fn from_format_id(id: FormatId) -> Option<SupportedDcInputFormat>
pub const fn from_format_id(id: FormatId) -> Option<SupportedDcInputFormat>
Converts a global FormatId to SupportedDcInputFormat if supported.
pub const fn is_supported(id: FormatId) -> bool
pub const fn is_supported(id: FormatId) -> bool
Returns true if the given FormatId is supported by this capability.
Trait Implementations§
§impl Clone for SupportedDcInputFormat
impl Clone for SupportedDcInputFormat
§fn clone(&self) -> SupportedDcInputFormat
fn clone(&self) -> SupportedDcInputFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for SupportedDcInputFormat
impl Debug for SupportedDcInputFormat
§impl Default for SupportedDcInputFormat
impl Default for SupportedDcInputFormat
§fn default() -> SupportedDcInputFormat
fn default() -> SupportedDcInputFormat
Source§impl From<SupportedDcInputFormat> for FormatSpec
impl From<SupportedDcInputFormat> for FormatSpec
Source§fn from(fmt: SupportedDcInputFormat) -> Self
fn from(fmt: SupportedDcInputFormat) -> Self
§impl FromStr for SupportedDcInputFormat
impl FromStr for SupportedDcInputFormat
§impl Hash for SupportedDcInputFormat
impl Hash for SupportedDcInputFormat
§impl Ord for SupportedDcInputFormat
impl Ord for SupportedDcInputFormat
§fn cmp(&self, other: &SupportedDcInputFormat) -> Ordering
fn cmp(&self, other: &SupportedDcInputFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for SupportedDcInputFormat
impl PartialEq for SupportedDcInputFormat
§impl PartialOrd for SupportedDcInputFormat
impl PartialOrd for SupportedDcInputFormat
§impl TryFrom<&str> for SupportedDcInputFormat
impl TryFrom<&str> for SupportedDcInputFormat
§impl TryFrom<FormatId> for SupportedDcInputFormat
impl TryFrom<FormatId> for SupportedDcInputFormat
§fn try_from(
id: FormatId,
) -> Result<SupportedDcInputFormat, <SupportedDcInputFormat as TryFrom<FormatId>>::Error>
fn try_from( id: FormatId, ) -> Result<SupportedDcInputFormat, <SupportedDcInputFormat as TryFrom<FormatId>>::Error>
§impl TryFrom<String> for SupportedDcInputFormat
impl TryFrom<String> for SupportedDcInputFormat
§impl ValueEnum for SupportedDcInputFormat
impl ValueEnum for SupportedDcInputFormat
§fn value_variants<'a>() -> &'a [SupportedDcInputFormat]
fn value_variants<'a>() -> &'a [SupportedDcInputFormat]
§fn to_possible_value<'a>(&self) -> Option<PossibleValue>
fn to_possible_value<'a>(&self) -> Option<PossibleValue>
impl Copy for SupportedDcInputFormat
impl Eq for SupportedDcInputFormat
impl StructuralPartialEq for SupportedDcInputFormat
Auto Trait Implementations§
impl Freeze for SupportedDcInputFormat
impl RefUnwindSafe for SupportedDcInputFormat
impl Send for SupportedDcInputFormat
impl Sync for SupportedDcInputFormat
impl Unpin for SupportedDcInputFormat
impl UnwindSafe for SupportedDcInputFormat
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
fn exact_from(value: T) -> U
§impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
fn exact_into(self) -> U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);