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
sourceimpl Executable for GetField
impl Executable for GetField
sourceimpl Trace for GetField
impl Trace for GetField
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for GetField
Auto Trait Implementations
impl RefUnwindSafe for GetField
impl !Send for GetField
impl !Sync for GetField
impl Unpin for GetField
impl UnwindSafe for GetField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more