pub struct HolderValueFact {
pub export_name: String,
pub key: String,
pub object: String,
pub path: String,
}Expand description
A value under a static key of an exported object literal:
export default { websocket: WebSocket } or
export const transports = { websocket: WebSocket }.
Another module can import the holder and read
holder[name].prototype.member. The member pass follows this fact one
hop to the value, so the read credits the instance member of the class.
Fields§
§export_name: StringThe export name of the holder: default, or the name of the
exported const.
key: StringThe static key of the property.
object: StringThe local name of the root binding of the value: an import binding, or a binding that the module declares.
path: StringThe dotted member path of the value after the root. Empty for a bare root.
Trait Implementations§
Source§impl Clone for HolderValueFact
impl Clone for HolderValueFact
Source§impl Debug for HolderValueFact
impl Debug for HolderValueFact
impl<'__de> Decode<'__de> for HolderValueFactwhere
'__de:,
impl Encode for HolderValueFact
impl Eq for HolderValueFact
Source§impl PartialEq for HolderValueFact
impl PartialEq for HolderValueFact
Source§impl Serialize for HolderValueFact
impl Serialize for HolderValueFact
impl StructuralPartialEq for HolderValueFact
Auto Trait Implementations§
impl Forget for HolderValueFact
impl Freeze for HolderValueFact
impl Move for HolderValueFact
impl RefUnwindSafe for HolderValueFact
impl Send for HolderValueFact
impl Sync for HolderValueFact
impl Unpin for HolderValueFact
impl UnsafeUnpin for HolderValueFact
impl UnwindSafe for HolderValueFact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.