pub struct ValidSubElementInfo {
pub element_name: ElementName,
pub is_named: bool,
pub is_allowed: bool,
}Expand description
information about a sub element
This structure is returned by Element::list_valid_sub_elements()
Fields§
§element_name: ElementNamename of the potential sub element
is_named: boolis the sub element named, i.e. does it need to be created with Element::create_named_sub_element()
is_allowed: boolis the sub element currently allowed, given the existing content of the element. Note that some sub elements are mutually exclusive.
Trait Implementations§
Source§impl Clone for ValidSubElementInfo
impl Clone for ValidSubElementInfo
Source§fn clone(&self) -> ValidSubElementInfo
fn clone(&self) -> ValidSubElementInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidSubElementInfo
impl Debug for ValidSubElementInfo
Source§impl PartialEq for ValidSubElementInfo
impl PartialEq for ValidSubElementInfo
impl StructuralPartialEq for ValidSubElementInfo
Auto Trait Implementations§
impl Freeze for ValidSubElementInfo
impl RefUnwindSafe for ValidSubElementInfo
impl Send for ValidSubElementInfo
impl Sync for ValidSubElementInfo
impl Unpin for ValidSubElementInfo
impl UnsafeUnpin for ValidSubElementInfo
impl UnwindSafe for ValidSubElementInfo
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