Struct stc_ts_types::TypeElMetadata
source · [−]pub struct TypeElMetadata {
pub has_default: bool,
}
Fields
has_default: bool
If true
, it means the element has a default value.
While assignment, missing property error will not occur by the element
with this flag set to true
.
Trait Implementations
sourceimpl Clone for TypeElMetadata
impl Clone for TypeElMetadata
sourcefn clone(&self) -> TypeElMetadata
fn clone(&self) -> TypeElMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TypeElMetadata
impl Debug for TypeElMetadata
sourceimpl Default for TypeElMetadata
impl Default for TypeElMetadata
sourcefn default() -> TypeElMetadata
fn default() -> TypeElMetadata
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TypeElMetadata
impl<'de> Deserialize<'de> for TypeElMetadata
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for TypeElMetadata
impl EqIgnoreSpan for TypeElMetadata
Note
This struct is treated as a span while comparison. It means, EqIgnoreSpan will always return true.
fn eq_ignore_span(&self, _: &Self) -> bool
sourceimpl<F: ?Sized> FoldWith<F> for TypeElMetadata
impl<F: ?Sized> FoldWith<F> for TypeElMetadata
Noop.
sourceimpl PartialEq<TypeElMetadata> for TypeElMetadata
impl PartialEq<TypeElMetadata> for TypeElMetadata
sourcefn eq(&self, other: &TypeElMetadata) -> bool
fn eq(&self, other: &TypeElMetadata) -> bool
sourceimpl Serialize for TypeElMetadata
impl Serialize for TypeElMetadata
sourceimpl TypeEq for TypeElMetadata
impl TypeEq for TypeElMetadata
sourceimpl<F: ?Sized> VisitMutWith<F> for TypeElMetadata
impl<F: ?Sized> VisitMutWith<F> for TypeElMetadata
Noop.
fn visit_mut_children_with(&mut self, _: &mut F)
fn visit_mut_with(&mut self, visitor: &mut V)where
V: VisitMut<Self>,
sourceimpl<F: ?Sized> VisitWith<F> for TypeElMetadata
impl<F: ?Sized> VisitWith<F> for TypeElMetadata
Noop.
fn visit_children_with(&self, _: &mut F)
fn visit_with(&self, visitor: &mut V)where
V: Visit<Self>,
impl Copy for TypeElMetadata
impl Eq for TypeElMetadata
impl StructuralEq for TypeElMetadata
impl StructuralPartialEq for TypeElMetadata
impl Visitable for TypeElMetadata
Auto Trait Implementations
impl RefUnwindSafe for TypeElMetadata
impl Send for TypeElMetadata
impl Sync for TypeElMetadata
impl Unpin for TypeElMetadata
impl UnwindSafe for TypeElMetadata
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.