Struct proc_macro::LineColumn
source · pub struct LineColumn {
pub line: usize,
pub column: usize,
}
🔬This is a nightly-only experimental API. (
proc_macro_span
#54725)Expand description
代表 Span
开头或结尾的行 - 列对。
Fields§
§line: usize
🔬This is a nightly-only experimental API. (
proc_macro_span
#54725)源文件中跨度开始或结束 (inclusive) 的 1 索引行。
column: usize
🔬This is a nightly-only experimental API. (
proc_macro_span
#54725)跨度开始或结束 (inclusive) 的源文件中的 1 索引列 (UTF-8 编码中的字节数)。
Trait Implementations§
source§impl Clone for LineColumn
impl Clone for LineColumn
source§fn clone(&self) -> LineColumn
fn clone(&self) -> LineColumn
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl Debug for LineColumn
impl Debug for LineColumn
source§impl Hash for LineColumn
impl Hash for LineColumn
source§impl Ord for LineColumn
impl Ord for LineColumn
source§impl PartialEq<LineColumn> for LineColumn
impl PartialEq<LineColumn> for LineColumn
source§impl PartialOrd<LineColumn> for LineColumn
impl PartialOrd<LineColumn> for LineColumn
impl Copy for LineColumn
impl Eq for LineColumn
impl !Send for LineColumn
impl StructuralEq for LineColumn
impl StructuralPartialEq for LineColumn
impl !Sync for LineColumn
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值中借用。 Read more