Skip to main content

XamlStaticExtensionNode

Struct XamlStaticExtensionNode 

Source
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

Source

pub fn new( line_info: &XamlAstObjectNode, target_type: Option<Rc<dyn IXamlAstTypeReference>>, member: &str, ) -> Rc<Self>

Source

pub fn resolve_member( &self, throw_on_unknown: bool, ) -> XamlResult<Option<XamlStaticMember>>

Trait Implementations§

Source§

impl IXamlAstNode for XamlStaticExtensionNode

Source§

fn as_any(&self) -> &dyn Any

Source§

fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>

Source§

fn type_name(&self) -> &'static str

GetType().Name.
Source§

fn into_value_node(self: Rc<Self>) -> Option<Rc<dyn IXamlAstValueNode>>

this as IXamlAstValueNode.
Source§

fn visit_children(&self, visitor: &mut dyn IXamlAstVisitor) -> XamlResult<()>

Visits (and replaces in place) the children of this node.
Source§

fn is_skipped(&self) -> bool

Source§

fn to_node_string(&self) -> String

object.ToString().
Source§

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>>

this as IXamlAstImperativeNode.
Source§

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>>

this as IXamlAstPropertyReference.
Source§

fn as_needs_parent_stack(&self) -> Option<&dyn IXamlAstNodeNeedsParentStack>

this as IXamlAstNodeNeedsParentStack.
Source§

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>

this as XamlValueWithManipulationNode (also true for its subclasses).
Source§

fn as_method_call_base_node(&self) -> Option<&XamlMethodCallBaseNode>

this as XamlMethodCallBaseNode (base class of the method call nodes).
Source§

fn query_interface(self: Rc<Self>, slot: &mut dyn Any) -> bool

Dynamic interface query for interfaces this crate does not know about, e.g. the backend specific IXamlAstEmitableNode<TBackendEmitter, TEmitResult>. See [crate::extensions::query_interface].
Source§

impl IXamlAstValueNode for XamlStaticExtensionNode

Source§

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.

Source§

impl IXamlLineInfo for XamlStaticExtensionNode

Source§

fn line(&self) -> i32

Source§

fn position(&self) -> i32

Source§

fn set_line(&self, value: i32)

Source§

fn set_position(&self, value: i32)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> XamlAstCast for T
where T: IXamlAstNode,

Source§

fn kind_name() -> &'static str

Source§

fn cast_from(node: Rc<dyn IXamlAstNode>) -> Option<Rc<T>>

node as Self.
Source§

fn upcast(this: Rc<T>) -> Rc<dyn IXamlAstNode>