'iff' for docs to 'if and only if'
This commit is contained in:
parent
492f33a267
commit
dad8cd19d3
17 changed files with 25 additions and 25 deletions
|
|
@ -509,9 +509,9 @@ pub struct ItemVariances {
|
|||
|
||||
#[derive(Clone, PartialEq, RustcDecodable, RustcEncodable, Copy)]
|
||||
pub enum Variance {
|
||||
Covariant, // T<A> <: T<B> if A <: B -- e.g., function return type
|
||||
Invariant, // T<A> <: T<B> if B == A -- e.g., type of mutable cell
|
||||
Contravariant, // T<A> <: T<B> if B <: A -- e.g., function param type
|
||||
Covariant, // T<A> <: T<B> iff A <: B -- e.g., function return type
|
||||
Invariant, // T<A> <: T<B> iff B == A -- e.g., type of mutable cell
|
||||
Contravariant, // T<A> <: T<B> iff B <: A -- e.g., function param type
|
||||
Bivariant, // T<A> <: T<B> -- e.g., unused type parameter
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ impl<'v, P> Visitor<'v> for LoopQueryVisitor<P> where P: FnMut(&ast::Expr_) -> b
|
|||
}
|
||||
}
|
||||
|
||||
// Takes a predicate p, returns true if p is true for any subexpressions
|
||||
// Takes a predicate p, returns true iff p is true for any subexpressions
|
||||
// of b -- skipping any inner loops (loop, while, loop_body)
|
||||
pub fn loop_query<P>(b: &ast::Block, p: P) -> bool where P: FnMut(&ast::Expr_) -> bool {
|
||||
let mut v = LoopQueryVisitor {
|
||||
|
|
@ -168,7 +168,7 @@ impl<'v, P> Visitor<'v> for BlockQueryVisitor<P> where P: FnMut(&ast::Expr) -> b
|
|||
}
|
||||
}
|
||||
|
||||
// Takes a predicate p, returns true if p is true for any subexpressions
|
||||
// Takes a predicate p, returns true iff p is true for any subexpressions
|
||||
// of b -- skipping any inner loops (loop, while, loop_body)
|
||||
pub fn block_query<P>(b: &ast::Block, p: P) -> bool where P: FnMut(&ast::Expr) -> bool {
|
||||
let mut v = BlockQueryVisitor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue