Lines Matching refs:String
75 StringSequence(ValueSequenceConstraint<String>),
77 String(ValueConstraint<String>), enumerator
148 impl From<Vec<String>> for MediaTrackConstraint {
149 fn from(bare: Vec<String>) -> Self { in from()
156 let bare: Vec<String> = bare.into_iter().map(|c| c.to_owned()).collect(); in from()
161 impl From<ResolvedValueSequenceConstraint<String>> for MediaTrackConstraint {
162 fn from(constraint: ResolvedValueSequenceConstraint<String>) -> Self { in from()
167 impl From<ValueSequenceConstraint<String>> for MediaTrackConstraint {
168 fn from(constraint: ValueSequenceConstraint<String>) -> Self { in from()
175 impl From<String> for MediaTrackConstraint {
176 fn from(bare: String) -> Self { in from()
177 Self::String(bare.into()) in from()
183 let bare: String = bare.to_owned(); in from()
188 impl From<ResolvedValueConstraint<String>> for MediaTrackConstraint {
189 fn from(constraint: ResolvedValueConstraint<String>) -> Self { in from()
190 Self::String(constraint.into()) in from()
194 impl From<ValueConstraint<String>> for MediaTrackConstraint {
195 fn from(constraint: ValueConstraint<String>) -> Self { in from()
196 Self::String(constraint) in from()
210 MediaTrackSetting::String(value) => Self::String(value.into()), in from()
224 Self::String(constraint) => constraint.is_empty(), in is_empty()
257 Self::String(constraint) => { in into_resolved()
258 ResolvedMediaTrackConstraint::String(constraint.into_resolved(strategy)) in into_resolved()
287 StringSequence(ResolvedValueSequenceConstraint<String>),
289 String(ResolvedValueConstraint<String>), enumerator
306 Self::String(constraint) => constraint.fmt(f), in fmt()
337 impl From<ResolvedValueSequenceConstraint<String>> for ResolvedMediaTrackConstraint {
338 fn from(constraint: ResolvedValueSequenceConstraint<String>) -> Self { in from()
345 impl From<ResolvedValueConstraint<String>> for ResolvedMediaTrackConstraint {
346 fn from(constraint: ResolvedValueConstraint<String>) -> Self { in from()
347 Self::String(constraint) in from()
374 Self::String(constraint) => constraint.is_required(), in is_required()
386 Self::String(constraint) => constraint.is_empty(), in is_empty()
406 Self::String(constraint) => Self::String(constraint.into_required_only()), in into_required_only()
499 Subject::from(MediaTrackSetting::String("string".to_owned())), in setting()
500 Subject::String(ValueConstraint::Bare(_)) in setting()
553 Subject::from(String::new()), in string()
554 Subject::from(ValueConstraint::<String>::default()), in string()
555 Subject::from(ResolvedValueConstraint::<String>::default()), in string()
561 assert!(matches!(subject, Subject::String(_))); in string()
569 Subject::from(vec![String::new()]), in string_sequence()
570 Subject::from(ValueSequenceConstraint::<String>::default()), in string_sequence()
571 Subject::from(ResolvedValueSequenceConstraint::<String>::default()), in string_sequence()
592 Subject::String(ValueConstraint::Bare("string".to_owned())), in is_empty()
625 Subject::String(ValueConstraint::Bare("string".to_owned())), in to_resolved()
626 ResolvedMediaTrackConstraint::String( in to_resolved()
667 Subject::String(ResolvedValueConstraint::default().exact("string".to_owned())), in to_string()
776 let subject = Subject::String("foo".to_owned().into()); in string_bare()
784 let subject = Subject::String( in string_constraint()