pub struct XamlStaticExtensionNode {
pub member: RefCell<String>,
pub target_type: RefCell<Option<Rc<dyn IXamlAstTypeReference>>>,
/* private fields */
}Fields§
§member: RefCell<String>§target_type: RefCell<Option<Rc<dyn IXamlAstTypeReference>>>Implementations§
Source§impl XamlStaticExtensionNode
impl XamlStaticExtensionNode
pub fn new( line_info: &XamlAstObjectNode, target_type: Option<Rc<dyn IXamlAstTypeReference>>, member: &str, ) -> Rc<Self>
pub fn resolve_member( &self, throw_on_unknown: bool, ) -> XamlResult<Option<XamlStaticMember>>
Trait Implementations§
Source§impl IXamlAstNode for XamlStaticExtensionNode
impl IXamlAstNode for XamlStaticExtensionNode
fn as_any(&self) -> &dyn Any
fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>
Source§fn into_value_node(self: Rc<Self>) -> Option<Rc<dyn IXamlAstValueNode>>
fn into_value_node(self: Rc<Self>) -> Option<Rc<dyn IXamlAstValueNode>>
this as IXamlAstValueNode.Source§fn visit_children(&self, visitor: &mut dyn IXamlAstVisitor) -> XamlResult<()>
fn visit_children(&self, visitor: &mut dyn IXamlAstVisitor) -> XamlResult<()>
Visits (and replaces in place) the children of this node.
fn is_skipped(&self) -> bool
Source§fn to_node_string(&self) -> String
fn to_node_string(&self) -> String
object.ToString().Source§fn into_manipulation_node(
self: Rc<Self>,
) -> Option<Rc<dyn IXamlAstManipulationNode>>
fn into_manipulation_node( self: Rc<Self>, ) -> Option<Rc<dyn IXamlAstManipulationNode>>
this as IXamlAstManipulationNode.Source§fn into_imperative_node(
self: Rc<Self>,
) -> Option<Rc<dyn IXamlAstImperativeNode>>
fn into_imperative_node( self: Rc<Self>, ) -> Option<Rc<dyn IXamlAstImperativeNode>>
this as IXamlAstImperativeNode.Source§fn into_type_reference(self: Rc<Self>) -> Option<Rc<dyn IXamlAstTypeReference>>
fn into_type_reference(self: Rc<Self>) -> Option<Rc<dyn IXamlAstTypeReference>>
this as IXamlAstTypeReference.Source§fn into_property_reference(
self: Rc<Self>,
) -> Option<Rc<dyn IXamlAstPropertyReference>>
fn into_property_reference( self: Rc<Self>, ) -> Option<Rc<dyn IXamlAstPropertyReference>>
this as IXamlAstPropertyReference.Source§fn as_needs_parent_stack(&self) -> Option<&dyn IXamlAstNodeNeedsParentStack>
fn as_needs_parent_stack(&self) -> Option<&dyn IXamlAstNodeNeedsParentStack>
this as IXamlAstNodeNeedsParentStack.Source§fn as_value_with_side_effect_node_base(
&self,
) -> Option<&XamlValueWithSideEffectNodeBase>
fn as_value_with_side_effect_node_base( &self, ) -> Option<&XamlValueWithSideEffectNodeBase>
this as XamlValueWithSideEffectNodeBase (base class of several nodes).Source§fn as_value_with_manipulation_node(
&self,
) -> Option<&XamlValueWithManipulationNode>
fn as_value_with_manipulation_node( &self, ) -> Option<&XamlValueWithManipulationNode>
this as XamlValueWithManipulationNode (also true for its subclasses).Source§fn as_method_call_base_node(&self) -> Option<&XamlMethodCallBaseNode>
fn as_method_call_base_node(&self) -> Option<&XamlMethodCallBaseNode>
this as XamlMethodCallBaseNode (base class of the method call nodes).Source§impl IXamlAstValueNode for XamlStaticExtensionNode
impl IXamlAstValueNode for XamlStaticExtensionNode
Source§fn type_(&self) -> Rc<dyn IXamlAstTypeReference>
fn type_(&self) -> Rc<dyn IXamlAstTypeReference>
Upstream throws from this getter while the target type is still unresolved; the port reports the unknown pseudo type in that case.
Auto Trait Implementations§
impl !Freeze for XamlStaticExtensionNode
impl !RefUnwindSafe for XamlStaticExtensionNode
impl !Send for XamlStaticExtensionNode
impl !Sync for XamlStaticExtensionNode
impl !UnwindSafe for XamlStaticExtensionNode
impl Unpin for XamlStaticExtensionNode
impl UnsafeUnpin for XamlStaticExtensionNode
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