Struct mxmlextrema_as3parser::tree::TreeSemantics

source ·
pub struct TreeSemantics<S> { /* private fields */ }
Expand description

Represents a mapping of nodes to something.

A limited set of nodes may be mapped to something within this structure through using the implemented TreeSemanticsAccessor methods, such as .get() and .set().

Implementations§

source§

impl<S: Clone> TreeSemantics<S>

source

pub fn new() -> Self

source

pub fn clear(&self)

Trait Implementations§

source§

impl<S: Clone> TreeSemanticsAccessor<Block, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<Block>) -> Option<S>

source§

fn set(&self, node: &Rc<Block>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<Block>) -> bool

source§

fn has(&self, node: &Rc<Block>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssDirective, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssDirective>) -> Option<S>

source§

fn set(&self, node: &Rc<CssDirective>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssDirective>) -> bool

source§

fn has(&self, node: &Rc<CssDirective>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssDocument, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssDocument>) -> Option<S>

source§

fn set(&self, node: &Rc<CssDocument>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssDocument>) -> bool

source§

fn has(&self, node: &Rc<CssDocument>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssMediaQueryCondition, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssMediaQueryCondition>) -> Option<S>

source§

fn set(&self, node: &Rc<CssMediaQueryCondition>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssMediaQueryCondition>) -> bool

source§

fn has(&self, node: &Rc<CssMediaQueryCondition>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssProperty, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssProperty>) -> Option<S>

source§

fn set(&self, node: &Rc<CssProperty>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssProperty>) -> bool

source§

fn has(&self, node: &Rc<CssProperty>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssPropertyValue, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssPropertyValue>) -> Option<S>

source§

fn set(&self, node: &Rc<CssPropertyValue>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssPropertyValue>) -> bool

source§

fn has(&self, node: &Rc<CssPropertyValue>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssRule, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssRule>) -> Option<S>

source§

fn set(&self, node: &Rc<CssRule>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssRule>) -> bool

source§

fn has(&self, node: &Rc<CssRule>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssSelector, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssSelector>) -> Option<S>

source§

fn set(&self, node: &Rc<CssSelector>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssSelector>) -> bool

source§

fn has(&self, node: &Rc<CssSelector>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<CssSelectorCondition, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<CssSelectorCondition>) -> Option<S>

source§

fn set(&self, node: &Rc<CssSelectorCondition>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<CssSelectorCondition>) -> bool

source§

fn has(&self, node: &Rc<CssSelectorCondition>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<Directive, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<Directive>) -> Option<S>

source§

fn set(&self, node: &Rc<Directive>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<Directive>) -> bool

source§

fn has(&self, node: &Rc<Directive>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<Expression, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<Expression>) -> Option<S>

source§

fn set(&self, node: &Rc<Expression>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<Expression>) -> bool

source§

fn has(&self, node: &Rc<Expression>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<FunctionCommon, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<FunctionCommon>) -> Option<S>

source§

fn set(&self, node: &Rc<FunctionCommon>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<FunctionCommon>) -> bool

source§

fn has(&self, node: &Rc<FunctionCommon>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<InitializerField, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<InitializerField>) -> Option<S>

source§

fn set(&self, node: &Rc<InitializerField>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<InitializerField>) -> bool

source§

fn has(&self, node: &Rc<InitializerField>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<Mxml, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<Mxml>) -> Option<S>

source§

fn set(&self, node: &Rc<Mxml>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<Mxml>) -> bool

source§

fn has(&self, node: &Rc<Mxml>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<MxmlAttribute, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<MxmlAttribute>) -> Option<S>

source§

fn set(&self, node: &Rc<MxmlAttribute>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<MxmlAttribute>) -> bool

source§

fn has(&self, node: &Rc<MxmlAttribute>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<MxmlContent, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<MxmlContent>) -> Option<S>

source§

fn set(&self, node: &Rc<MxmlContent>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<MxmlContent>) -> bool

source§

fn has(&self, node: &Rc<MxmlContent>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<MxmlElement, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<MxmlElement>) -> Option<S>

source§

fn set(&self, node: &Rc<MxmlElement>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<MxmlElement>) -> bool

source§

fn has(&self, node: &Rc<MxmlElement>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<PackageDefinition, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<PackageDefinition>) -> Option<S>

source§

fn set(&self, node: &Rc<PackageDefinition>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<PackageDefinition>) -> bool

source§

fn has(&self, node: &Rc<PackageDefinition>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<Program, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<Program>) -> Option<S>

source§

fn set(&self, node: &Rc<Program>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<Program>) -> bool

source§

fn has(&self, node: &Rc<Program>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<QualifiedIdentifier, S> for TreeSemantics<S>

source§

fn get(&self, node: &Rc<QualifiedIdentifier>) -> Option<S>

source§

fn set(&self, node: &Rc<QualifiedIdentifier>, symbol: Option<S>)

source§

fn delete(&self, node: &Rc<QualifiedIdentifier>) -> bool

source§

fn has(&self, node: &Rc<QualifiedIdentifier>) -> bool

source§

impl<S: Clone> TreeSemanticsAccessor<SimpleVariableDefinition, S> for TreeSemantics<S>

Auto Trait Implementations§

§

impl<S> !Freeze for TreeSemantics<S>

§

impl<S> !RefUnwindSafe for TreeSemantics<S>

§

impl<S> !Send for TreeSemantics<S>

§

impl<S> !Sync for TreeSemantics<S>

§

impl<S> Unpin for TreeSemantics<S>
where S: Unpin,

§

impl<S> !UnwindSafe for TreeSemantics<S>

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<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
source§

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
source§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T

source§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
source§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
source§

impl<T> ConvUtil for T

source§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
source§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
source§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
source§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
source§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
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<Src> TryFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
source§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
source§

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

§

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<Src> ValueFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
source§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
source§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
source§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.