pub fn constrain<T: ?Sized>(t: &T) -> &T
Used to check that serde(getter) attributes return the expected type. Not public API.