Lines Matching refs:T
24 pub enum ValueConstraint<T> {
26 Bare(T),
28 Constraint(ResolvedValueConstraint<T>),
31 impl<T> Default for ValueConstraint<T> {
37 impl<T> From<T> for ValueConstraint<T> {
38 fn from(bare: T) -> Self { in from()
43 impl<T> From<ResolvedValueConstraint<T>> for ValueConstraint<T> {
44 fn from(constraint: ResolvedValueConstraint<T>) -> Self { in from()
49 impl<T> ValueConstraint<T>
51 T: Clone,
58 ) -> ResolvedValueConstraint<T> { in to_resolved() argument
67 ) -> ResolvedValueConstraint<T> { in into_resolved() argument
82 impl<T> ValueConstraint<T> {
110 pub struct ResolvedValueConstraint<T> {
118 pub exact: Option<T>,
126 pub ideal: Option<T>,
129 impl<T> ResolvedValueConstraint<T> {
135 Option<T>: From<U>, in exact()
146 Option<T>: From<U>, in ideal()
167 T: Clone, in to_required_only()
182 impl<T> Default for ResolvedValueConstraint<T> {
192 impl<T> std::fmt::Display for ResolvedValueConstraint<T>
194 T: std::fmt::Debug,