#[non_exhaustive]pub struct RefusedSegment {
pub entity: EntityId,
pub type_name: String,
pub reason: AlignmentError,
}Expand description
One segment this crate declined to lower, and why.
Carries the authored type name verbatim so a caller can report
CLOTHOID rather than “some unsupported segment”, and the entity id so
it can point at the offending line of the source file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity: EntityIdThe IfcAlignmentHorizontalSegment entity that was refused.
type_name: StringThe segment’s authored PredefinedType, preserved exactly.
reason: AlignmentErrorWhy this segment could not be lowered exactly.
Trait Implementations§
Source§impl Clone for RefusedSegment
impl Clone for RefusedSegment
Source§impl Debug for RefusedSegment
impl Debug for RefusedSegment
Source§impl PartialEq for RefusedSegment
impl PartialEq for RefusedSegment
impl StructuralPartialEq for RefusedSegment
Auto Trait Implementations§
impl Freeze for RefusedSegment
impl RefUnwindSafe for RefusedSegment
impl Send for RefusedSegment
impl Sync for RefusedSegment
impl Unpin for RefusedSegment
impl UnsafeUnpin for RefusedSegment
impl UnwindSafe for RefusedSegment
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