Struct svgtypes::TextPos [−][src]
Position in text.
Position indicates a row/line and a column in the original text. Starting from 1:1.
Fields
row: u32
col: u32
Methods
impl TextPos[src]
impl TextPospub fn new(row: u32, col: u32) -> TextPos[src]
pub fn new(row: u32, col: u32) -> TextPosConstructs a new TextPos.
Should not be invoked manually, but rather via Stream::gen_error_pos.
Trait Implementations
impl Display for TextPos[src]
impl Display for TextPosfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for TextPos[src]
impl Clone for TextPosfn clone(&self) -> TextPos[src]
fn clone(&self) -> TextPosReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for TextPos[src]
impl Debug for TextPosfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for TextPos[src]
impl Copy for TextPosimpl PartialEq<TextPos> for TextPos[src]
impl PartialEq<TextPos> for TextPos