#[non_exhaustive]pub struct FormatInfo {
pub token: &'static str,
pub extension: Option<&'static str>,
pub is_directory: bool,
pub can_emit: bool,
}Expand description
The canonical identity and destination shape of a PowerIO format.
extension is the conventional filename suffix without a leading dot; it
may be compound. It is None for directory formats with no primary case
file. can_emit reports whether a fresh universal emitter
exists for the format. It does not promise that every concrete module value can
emit that format, and it is not a build feature probe. A false value neither
promises nor forbids a same format retained source echo.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token: &'static strCanonical stable token used by parse and emit operations when the current build and concrete value support the format.
extension: Option<&'static str>Conventional filename suffix without a leading dot.
is_directory: boolWhether a path destination names an output directory rather than one file.
can_emit: boolWhether a fresh universal emitter exists for this format.
Trait Implementations§
Source§impl Clone for FormatInfo
impl Clone for FormatInfo
Source§fn clone(&self) -> FormatInfo
fn clone(&self) -> FormatInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FormatInfo
Source§impl Debug for FormatInfo
impl Debug for FormatInfo
impl Eq for FormatInfo
Source§impl PartialEq for FormatInfo
impl PartialEq for FormatInfo
Source§fn eq(&self, other: &FormatInfo) -> bool
fn eq(&self, other: &FormatInfo) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for FormatInfo
impl Serialize for FormatInfo
impl StructuralPartialEq for FormatInfo
Auto Trait Implementations§
impl Freeze for FormatInfo
impl RefUnwindSafe for FormatInfo
impl Send for FormatInfo
impl Sync for FormatInfo
impl Unpin for FormatInfo
impl UnsafeUnpin for FormatInfo
impl UnwindSafe for FormatInfo
Blanket Implementations§
impl<T> Allocation for T
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
key and return true if they are equal.