Searched refs:InferredBound (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/async-trait/src/ |
D | bound.rs | 8 pub enum InferredBound { enum 13 pub fn has_bound(supertraits: &Supertraits, bound: &InferredBound) -> bool { in has_bound() 30 impl InferredBound { impl 33 InferredBound::Send => "Send", in as_str() 34 InferredBound::Sync => "Sync", in as_str() 44 impl PartialEq<InferredBound> for Ident { 45 fn eq(&self, bound: &InferredBound) -> bool { in eq()
|
D | expand.rs | 1 use crate::bound::{has_bound, InferredBound, Supertraits}; 233 let bounds: &[InferredBound] = match sig.inputs.iter().next() { in transform_sig() 238 })) => &[InferredBound::Sync], in transform_sig() 247 Type::Reference(ty) if ty.mutability.is_none() => &[InferredBound::Sync], in transform_sig() 267 &[InferredBound::Sync, InferredBound::Send] in transform_sig() 269 _ => &[InferredBound::Send], in transform_sig() 272 _ => &[InferredBound::Send], in transform_sig()
|