pub fn max(self, other: impl Into<Option<Self>>) -> Self {
        let other = match other.into() {
            Some(other) => other,
            None => return self,
        };
        match self.at.cmp(&other.at) {
            Ordering::Greater => self,
            Ordering::Less => other,
            Ordering::Equal => Self {
                error: self.error.merge(other.error),
                ..self
            },
        }
    }
/// Get the maximum of two located errors. If they hold the same position in the input, merge them.
Get the maximum of two located errors. If they hold the same position in the input, merge them.
Get the maximum of two located errors . If they hold the same position in the input merge them .
pub fn max(self, other: impl Into<Option<Self>>) -> Self {
        let other = match other.into() {
            Some(other) => other,
            None => return self,
        };
        match self.at.cmp(&other.at) {
            Ordering::Greater => self,
            Ordering::Less => other,
            Ordering::Equal => Self {
                error: self.error.merge(other.error),
                ..self
            },
        }
    }
pub fn max ( self , other : impl Into < Option < Self > > ) -> Self { let other = match other . into ( ) { Some ( other ) => other , None => return self , } ; match self . at . cmp ( & other . at ) { Ordering :: Greater => self , Ordering :: Less => other , Ordering :: Equal => Self { error : self . error . merge ( other . error ) , .. self } , } }
Get the maximum of two located errors.
Get the maximum of two located errors .
self
other
impl Into<Option<Self>>