Lines Matching defs:position
307 /// An iterator over the input type, producing the item and its position
308 /// for use with [Slice]. If we're iterating over `&str`, the position
319 /// Finds the byte position of the element
320 fn position<P>(&self, predicate: P) -> Option<usize>
323 /// Get the byte offset from the element's position in the stream
349 fn position<P>(&self, predicate: P) -> Option<usize>
353 self.iter().position(|b| predicate(*b))
389 fn position<P>(&self, predicate: P) -> Option<usize>
451 /// and returns the input up to this position.
459 /// and returns the input up to this position.
473 /// and returns the input up to this position.
484 /// and returns the input up to this position.
507 match self.position(predicate) {
521 match self.position(predicate) {
569 match self.iter().position(|c| predicate(*c)) {
583 match self.iter().position(|c| predicate(*c)) {
597 match self.iter().position(|c| predicate(*c)) {
611 match self.iter().position(|c| predicate(*c)) {
740 let pos = self.iter().zip(t.iter()).position(|(a, b)| a != b);
796 .position(|(a, b)| a != b);
849 .position(|(a, b)| a.to_lowercase().ne(b.to_lowercase()));
931 /// Returns the byte position of the substring if it is found
943 // an empty substring is found at position 0
955 while let Some(position) = memchr::memchr(substr_first, &haystack[offset..]) {
956 offset += position;
1080 fn position<P>(&self, predicate: P) -> Option<usize>
1082 (&self[..]).position(predicate)