fn span_x_right(&self, span: &TextSpan) -> Result<u16> {
        let left = span.state.text_rectangle.x - 1;
        let w = span.state.text_rectangle.w;
        let (_, after) = self.offset_horiz(span)?;
        Ok(left + w - after)
    }
/// Get the X position of a right-justified span.
Get the X position of a right-justified span.
Get the X position of a right - justified span .
fn span_x_right(&self, span: &TextSpan) -> Result<u16> {
        let left = span.state.text_rectangle.x - 1;
        let w = span.state.text_rectangle.w;
        let (_, after) = self.offset_horiz(span)?;
        Ok(left + w - after)
    }
fn span_x_right ( & self , span : & TextSpan ) -> Result < u16 > { let left = span . state . text_rectangle . x - 1 ; let w = span . state . text_rectangle . w ; let ( _ , after ) = self . offset_horiz ( span ) ? ; Ok ( left + w - after ) }
Get the X position of a right-justified span.
Get the X position of a right - justified span .
&self
span
&TextSpan