pub struct IndexSignature {
pub key_type: TypeId,
pub value_type: TypeId,
pub readonly: bool,
}Expand description
Index signature information for object types
Represents { [key: string]: ValueType } or { [key: number]: ValueType }
Fields§
§key_type: TypeIdThe key type (usually string or number)
value_type: TypeIdThe value type for all indexed properties
readonly: boolWhether the index signature is readonly
Trait Implementations§
Source§impl Clone for IndexSignature
impl Clone for IndexSignature
Source§fn clone(&self) -> IndexSignature
fn clone(&self) -> IndexSignature
Returns a duplicate of the value. Read more
1.0.0 · 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 IndexSignature
impl Debug for IndexSignature
Source§impl Hash for IndexSignature
impl Hash for IndexSignature
Source§impl PartialEq for IndexSignature
impl PartialEq for IndexSignature
impl Eq for IndexSignature
impl StructuralPartialEq for IndexSignature
Auto Trait Implementations§
impl Freeze for IndexSignature
impl RefUnwindSafe for IndexSignature
impl Send for IndexSignature
impl Sync for IndexSignature
impl Unpin for IndexSignature
impl UnsafeUnpin for IndexSignature
impl UnwindSafe for IndexSignature
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,
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.