Struct ftd::ChildComponent
source · [−]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
sourceimpl 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
sourceimpl Clone for ChildComponent
impl Clone for ChildComponent
sourcefn clone(&self) -> ChildComponent
fn clone(&self) -> ChildComponent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChildComponent
impl Debug for ChildComponent
sourceimpl Default for ChildComponent
impl Default for ChildComponent
sourcefn default() -> ChildComponent
fn default() -> ChildComponent
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ChildComponent
impl<'de> Deserialize<'de> for ChildComponent
sourcefn 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
sourceimpl PartialEq<ChildComponent> for ChildComponent
impl PartialEq<ChildComponent> for ChildComponent
sourcefn eq(&self, other: &ChildComponent) -> bool
fn eq(&self, other: &ChildComponent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ChildComponent
impl Serialize for ChildComponent
impl StructuralPartialEq for ChildComponent
Auto Trait Implementations
impl RefUnwindSafe for ChildComponent
impl Send for ChildComponent
impl Sync for ChildComponent
impl Unpin for ChildComponent
impl UnwindSafe for ChildComponent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more