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.