Struct starlark::typing::TyUserFields
source · pub struct TyUserFields {
pub known: SortedMap<String, Ty>,
pub unknown: bool,
}
Expand description
Fields of the struct.
Fields§
§known: SortedMap<String, Ty>
Known fields.
unknown: bool
Are there unknown fields? Unknown fields are possible if this type represents an abstract type like a provider.
Implementations§
source§impl TyUserFields
impl TyUserFields
sourcepub fn no_fields() -> TyUserFields
pub fn no_fields() -> TyUserFields
No fields.
sourcepub fn unknown() -> TyUserFields
pub fn unknown() -> TyUserFields
All fields are not known.
Trait Implementations§
source§impl Allocative for TyUserFields
impl Allocative for TyUserFields
source§impl Debug for TyUserFields
impl Debug for TyUserFields
source§impl Default for TyUserFields
impl Default for TyUserFields
source§impl Hash for TyUserFields
impl Hash for TyUserFields
source§impl Ord for TyUserFields
impl Ord for TyUserFields
source§fn cmp(&self, other: &TyUserFields) -> Ordering
fn cmp(&self, other: &TyUserFields) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TyUserFields
impl PartialEq for TyUserFields
source§fn eq(&self, other: &TyUserFields) -> bool
fn eq(&self, other: &TyUserFields) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TyUserFields
impl PartialOrd for TyUserFields
source§fn partial_cmp(&self, other: &TyUserFields) -> Option<Ordering>
fn partial_cmp(&self, other: &TyUserFields) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TyUserFields
impl StructuralPartialEq for TyUserFields
Auto Trait Implementations§
impl !RefUnwindSafe for TyUserFields
impl Send for TyUserFields
impl Sync for TyUserFields
impl Unpin for TyUserFields
impl !UnwindSafe for TyUserFields
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.