serde::__private::ser

Function constrain

Source
pub fn constrain<T: ?Sized>(t: &T) -> &T
Expand description

Used to check that serde(getter) attributes return the expected type. Not public API.