pub struct GetField { /* private fields */ }Expand description
This property accessor provides access to an object’s properties by using the bracket notation.
In the object[property_name] syntax, the property_name is just a string or Symbol. So, it can be any string, including ‘1foo’, ‘!bar!’, or even ’ ’ (a space).
One can think of an object as an associative array (a.k.a. map, dictionary, hash, lookup table). The keys in this array are the names of the object’s properties.
It’s typical when speaking of an object’s properties to make a distinction between properties and methods. However, the property/method distinction is little more than a convention. A method is simply a property that can be called (for example, if it has a reference to a Function instance as its value).
More information:
Implementations§
Trait Implementations§
Source§impl Executable for GetField
impl Executable for GetField
Source§impl Trace for GetField
impl Trace for GetField
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for GetField
Auto Trait Implementations§
impl Freeze for GetField
impl RefUnwindSafe for GetField
impl !Send for GetField
impl !Sync for GetField
impl Unpin for GetField
impl UnwindSafe for GetField
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