pub enum CommonPropertiesInit {
Default,
Inline {
defined_properties: BTreeMap<String, ValueDefinition>,
},
Template(Rc<TemplatePropertyPlan>),
Factory(Box<dyn Fn(Rc<RuntimePropertiesStackFrame>, Option<Rc<ExpandedNode>>) -> Option<Rc<RefCell<CommonProperties>>>>),
}Expand description
Structured initialization for node-local common properties.
Variants§
Default
Inline
Fields
§
defined_properties: BTreeMap<String, ValueDefinition>Template(Rc<TemplatePropertyPlan>)
Factory(Box<dyn Fn(Rc<RuntimePropertiesStackFrame>, Option<Rc<ExpandedNode>>) -> Option<Rc<RefCell<CommonProperties>>>>)
Implementations§
Source§impl CommonPropertiesInit
impl CommonPropertiesInit
pub fn materialize( &self, stack_frame: Rc<RuntimePropertiesStackFrame>, expanded_node: Option<Rc<ExpandedNode>>, ) -> Option<Rc<RefCell<CommonProperties>>>
Auto Trait Implementations§
impl !RefUnwindSafe for CommonPropertiesInit
impl !Send for CommonPropertiesInit
impl !Sync for CommonPropertiesInit
impl !UnwindSafe for CommonPropertiesInit
impl Freeze for CommonPropertiesInit
impl Unpin for CommonPropertiesInit
impl UnsafeUnpin for CommonPropertiesInit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.