Function syntax::ast_util::struct_def_is_tuple_like[src]
pub fn struct_def_is_tuple_like(struct_def: &StructDef) -> bool
Returns true if the given struct def is tuple-like; i.e. that its fields are unnamed.
pub fn struct_def_is_tuple_like(struct_def: &StructDef) -> bool
Returns true if the given struct def is tuple-like; i.e. that its fields are unnamed.
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).