pub enum FeedFormat {
Atom,
Native,
Raw,
}Expand description
The output shape of a parse.
Variants§
Atom
The normalised Atom-shaped object. The default.
Native
The source dialect’s own structure, with no cross-dialect mapping.
Raw
The element tree from tabnas_xml, untouched.
Implementations§
Source§impl FeedFormat
impl FeedFormat
Sourcepub fn from_name(name: &str) -> Self
pub fn from_name(name: &str) -> Self
The format an option-bag string names.
Anything but native and raw is FeedFormat::Atom, because
the canonical convert tests for those two and falls through to
the Atom mapping for everything else. An unknown format name is
therefore the default rather than an error, in both runtimes.
Trait Implementations§
Source§impl Clone for FeedFormat
impl Clone for FeedFormat
impl Copy for FeedFormat
Source§impl Debug for FeedFormat
impl Debug for FeedFormat
Source§impl Default for FeedFormat
impl Default for FeedFormat
impl Eq for FeedFormat
Source§impl Hash for FeedFormat
impl Hash for FeedFormat
Source§impl PartialEq for FeedFormat
impl PartialEq for FeedFormat
impl StructuralPartialEq for FeedFormat
Auto Trait Implementations§
impl Forget for FeedFormat
impl Freeze for FeedFormat
impl RefUnwindSafe for FeedFormat
impl Send for FeedFormat
impl Sync for FeedFormat
impl Unpin for FeedFormat
impl UnsafeUnpin for FeedFormat
impl UnwindSafe for FeedFormat
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§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.