Struct stc_ts_file_analyzer::ty::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<TypeElMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TypeElMetadata, <__D as Deserializer<'de>>::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, &TypeElMetadata) -> bool
sourceimpl<F> FoldWith<F> for TypeElMetadatawhere
F: ?Sized,
impl<F> FoldWith<F> for TypeElMetadatawhere
F: ?Sized,
Noop.
fn fold_children_with(self, &mut F) -> TypeElMetadata
fn fold_with(self, visitor: &mut V) -> Selfwhere
V: Fold<Self>,
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
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl TypeEq for TypeElMetadata
impl TypeEq for TypeElMetadata
sourcefn type_eq(&self, &TypeElMetadata) -> bool
fn type_eq(&self, &TypeElMetadata) -> bool
Note: This method should return
true
for non-type values.sourceimpl<F> VisitMutWith<F> for TypeElMetadatawhere
F: ?Sized,
impl<F> VisitMutWith<F> for TypeElMetadatawhere
F: ?Sized,
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> VisitWith<F> for TypeElMetadatawhere
F: ?Sized,
impl<F> VisitWith<F> for TypeElMetadatawhere
F: ?Sized,
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.