pub struct SimplePropertyAccess { /* private fields */ }Expand description
A simple property access, where the target object is an Expression.
Implementations§
Source§impl SimplePropertyAccess
impl SimplePropertyAccess
Sourcepub const fn target(&self) -> &Expression
pub const fn target(&self) -> &Expression
Gets the target object of the property access.
Sourcepub const fn field(&self) -> &PropertyAccessField
pub const fn field(&self) -> &PropertyAccessField
Gets the accessed field of the target object.
Sourcepub fn new<F>(target: Expression, field: F) -> Selfwhere
F: Into<PropertyAccessField>,
pub fn new<F>(target: Expression, field: F) -> Selfwhere
F: Into<PropertyAccessField>,
Creates a PropertyAccess AST Expression.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for SimplePropertyAccess
impl<'arbitrary> Arbitrary<'arbitrary> for SimplePropertyAccess
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for SimplePropertyAccess
impl Clone for SimplePropertyAccess
Source§fn clone(&self) -> SimplePropertyAccess
fn clone(&self) -> SimplePropertyAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplePropertyAccess
impl Debug for SimplePropertyAccess
Source§impl<'de> Deserialize<'de> for SimplePropertyAccess
impl<'de> Deserialize<'de> for SimplePropertyAccess
Source§fn 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
Source§impl<'a> From<&'a SimplePropertyAccess> for NodeRef<'a>
impl<'a> From<&'a SimplePropertyAccess> for NodeRef<'a>
Source§fn from(node: &'a SimplePropertyAccess) -> NodeRef<'a>
fn from(node: &'a SimplePropertyAccess) -> NodeRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a mut SimplePropertyAccess> for NodeRefMut<'a>
impl<'a> From<&'a mut SimplePropertyAccess> for NodeRefMut<'a>
Source§fn from(node: &'a mut SimplePropertyAccess) -> NodeRefMut<'a>
fn from(node: &'a mut SimplePropertyAccess) -> NodeRefMut<'a>
Converts to this type from the input type.
Source§impl From<SimplePropertyAccess> for PropertyAccess
impl From<SimplePropertyAccess> for PropertyAccess
Source§fn from(access: SimplePropertyAccess) -> Self
fn from(access: SimplePropertyAccess) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimplePropertyAccess
impl PartialEq for SimplePropertyAccess
Source§impl Serialize for SimplePropertyAccess
impl Serialize for SimplePropertyAccess
Source§impl Spanned for SimplePropertyAccess
impl Spanned for SimplePropertyAccess
impl StructuralPartialEq for SimplePropertyAccess
Source§impl ToInternedString for SimplePropertyAccess
impl ToInternedString for SimplePropertyAccess
Source§fn to_interned_string(&self, interner: &Interner) -> String
fn to_interned_string(&self, interner: &Interner) -> String
Converts a given element to a string using an interner.
Source§impl VisitWith for SimplePropertyAccess
impl VisitWith for SimplePropertyAccess
Source§fn visit_with<'a, V>(&'a self, visitor: &mut V) -> ControlFlow<V::BreakTy>where
V: Visitor<'a>,
fn visit_with<'a, V>(&'a self, visitor: &mut V) -> ControlFlow<V::BreakTy>where
V: Visitor<'a>,
Visit this node with the provided visitor.
Source§fn visit_with_mut<'a, V>(
&'a mut self,
visitor: &mut V,
) -> ControlFlow<V::BreakTy>where
V: VisitorMut<'a>,
fn visit_with_mut<'a, V>(
&'a mut self,
visitor: &mut V,
) -> ControlFlow<V::BreakTy>where
V: VisitorMut<'a>,
Visit this node with the provided visitor mutably, allowing the visitor to modify private
fields.
Auto Trait Implementations§
impl !RefUnwindSafe for SimplePropertyAccess
impl !Send for SimplePropertyAccess
impl !Sync for SimplePropertyAccess
impl !UnwindSafe for SimplePropertyAccess
impl Freeze for SimplePropertyAccess
impl Unpin for SimplePropertyAccess
impl UnsafeUnpin for SimplePropertyAccess
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