pub struct LineChunk {
pub bbox: BoundingBox,
pub index: Option<u32>,
pub level: Option<String>,
pub start: Vertex,
pub end: Vertex,
pub width: f64,
pub is_horizontal_line: bool,
pub is_vertical_line: bool,
pub is_square: bool,
}Expand description
Line segment — used for table border detection.
Fields§
§bbox: BoundingBoxBounding box in page coordinates
index: Option<u32>Global index
level: Option<String>Nesting level
start: VertexStart vertex
end: VertexEnd vertex
width: f64Line width in points
is_horizontal_line: boolWhether this is a horizontal line
is_vertical_line: boolWhether this is a vertical line
is_square: boolWhether this is a square-like shape
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LineChunk
impl<'de> Deserialize<'de> for LineChunk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LineChunk
impl RefUnwindSafe for LineChunk
impl Send for LineChunk
impl Sync for LineChunk
impl Unpin for LineChunk
impl UnsafeUnpin for LineChunk
impl UnwindSafe for LineChunk
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more