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.
Auto Trait Implementations§
impl Freeze for ValidSubElementInfo
impl RefUnwindSafe for ValidSubElementInfo
impl Send for ValidSubElementInfo
impl Sync for ValidSubElementInfo
impl Unpin 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