{"ast_node_type":"function","tokens":[{"end":51,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn from_bool(is_valid_only: bool) -> Self {
impl PlaceValidity {
        if is_valid_only { ValidOnly } else { MaybeInvalid }