pub struct ChildComponent {
pub root: String,
pub condition: Option<Boolean>,
pub properties: Map<Property>,
pub arguments: Map<Kind>,
pub events: Vec<Event>,
pub is_recursive: bool,
pub line_number: usize,
pub reference: Option<(String, Kind)>,
}Fields§
§root: String§condition: Option<Boolean>§properties: Map<Property>§arguments: Map<Kind>§events: Vec<Event>§is_recursive: bool§line_number: usize§reference: Option<(String, Kind)>Implementations§
Source§impl ChildComponent
impl ChildComponent
pub fn super_call( &self, children: &[Self], doc: &mut TDoc<'_>, invocations: &mut Map<Vec<Map<Value>>>, local_container: &[usize], external_children_count: &Option<usize>, ) -> Result<ElementWithContainer>
pub fn recursive_call( &self, doc: &mut TDoc<'_>, invocations: &mut Map<Vec<Map<Value>>>, is_child: bool, local_container: &[usize], ) -> Result<Vec<ElementWithContainer>>
pub fn call( &self, doc: &mut TDoc<'_>, invocations: &mut Map<Vec<Map<Value>>>, is_child: bool, local_container: &[usize], id: Option<String>, external_children_count: &Option<usize>, ) -> Result<ElementWithContainer>
pub fn from_p1( line_number: usize, name: &str, p1: &Header, caption: &Option<String>, body: &Option<(usize, String)>, doc: &TDoc<'_>, arguments: &Map<Kind>, ) -> Result<Self>
Trait Implementations§
Source§impl Clone for ChildComponent
impl Clone for ChildComponent
Source§fn clone(&self) -> ChildComponent
fn clone(&self) -> ChildComponent
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 ChildComponent
impl Debug for ChildComponent
Source§impl Default for ChildComponent
impl Default for ChildComponent
Source§fn default() -> ChildComponent
fn default() -> ChildComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChildComponent
impl<'de> Deserialize<'de> for ChildComponent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChildComponent
impl PartialEq for ChildComponent
Source§impl Serialize for ChildComponent
impl Serialize for ChildComponent
impl StructuralPartialEq for ChildComponent
Auto Trait Implementations§
impl Freeze for ChildComponent
impl RefUnwindSafe for ChildComponent
impl Send for ChildComponent
impl Sync for ChildComponent
impl Unpin for ChildComponent
impl UnwindSafe for ChildComponent
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more