Lines Matching refs:from
51 fn from(capability: bool) -> Self { in from() method
57 fn from(capability: Vec<bool>) -> Self { in from() method
63 fn from(capability: RangeInclusive<u64>) -> Self { in from() method
69 fn from(capability: RangeInclusive<f64>) -> Self { in from() method
75 fn from(capability: String) -> Self { in from() method
81 fn from(capability: &'a str) -> Self { in from() method
83 Self::from(capability) in from()
88 fn from(capability: Vec<String>) -> Self { in from() method
94 fn from(capability: Vec<&str>) -> Self { in from() method
96 Self::from(capability) in from()
106 mod from { module
111 let actual = Subject::from(vec![false, true]); in bool_sequence()
119 let actual = Subject::from(true); in bool()
127 let actual = Subject::from(12..=34); in integer_range()
135 let actual = Subject::from(1.2..=3.4); in float()
143 let actual = Subject::from(vec!["foo".to_owned(), "bar".to_owned()]); in string_sequence()
151 let actual = Subject::from("foo".to_owned()); in string()