pub enum ElementParticle {
Ref(QName),
Decl(ElementDecl),
}Expand description
Represents an element particle in a complex type’s content model.
Variants§
Ref(QName)
A reference to a globally defined element (from xs:element[@ref]).
Decl(ElementDecl)
An inline element declaration (from xs:element inside a compositor).
This is used in complex content of tuple elements in older XBRL
taxonomies that don’t use complexContent for tuples.
Implementations§
Source§impl ElementParticle
impl ElementParticle
Sourcepub fn local_name(&self) -> &str
pub fn local_name(&self) -> &str
Returns the local name of the element: the ref local name for
references, or the declared name for inline declarations.
Trait Implementations§
Source§impl Clone for ElementParticle
impl Clone for ElementParticle
Source§fn clone(&self) -> ElementParticle
fn clone(&self) -> ElementParticle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementParticle
impl Debug for ElementParticle
impl Eq for ElementParticle
Source§impl PartialEq for ElementParticle
impl PartialEq for ElementParticle
impl StructuralPartialEq for ElementParticle
Auto Trait Implementations§
impl Freeze for ElementParticle
impl RefUnwindSafe for ElementParticle
impl Send for ElementParticle
impl Sync for ElementParticle
impl Unpin for ElementParticle
impl UnsafeUnpin for ElementParticle
impl UnwindSafe for ElementParticle
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.