Check if this type is nullable
(&self)
| 1437 | impl TypeSpec { |
| 1438 | /// Check if this type is nullable |
| 1439 | pub fn is_nullable(&self) -> bool { |
| 1440 | match self { |
| 1441 | TypeSpec::Reference { target_type } => target_type.is_none(), |
| 1442 | TypeSpec::List { .. } => false, // Lists themselves are not nullable by default |
| 1443 | _ => false, // Most types are not nullable by default |
| 1444 | } |
| 1445 | } |
| 1446 | |
| 1447 | /// Check if this type is a scalar type |
| 1448 | pub fn is_scalar(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected