#[non_exhaustive]pub struct PathOffset {
pub base: PathPiece,
pub law: OffsetLaw,
}Expand description
An offset of a base piece (#289); see the module documentation.
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.base: PathPieceThe base piece: a span of an atomic curve, reversed or placed, not itself an offset, with no seam of its curve inside it.
law: OffsetLawThe displacement from it.
Implementations§
Source§impl PathOffset
impl PathOffset
Sourcepub fn new(base: PathPiece, law: OffsetLaw) -> PathOffset
pub fn new(base: PathPiece, law: OffsetLaw) -> PathOffset
The offset of base by law. Nothing is checked here: an
evaluator refuses a base it cannot offset when it reads the path.
Trait Implementations§
Source§impl Clone for PathOffset
impl Clone for PathOffset
Source§fn clone(&self) -> PathOffset
fn clone(&self) -> PathOffset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathOffset
impl Debug for PathOffset
Source§impl PartialEq for PathOffset
impl PartialEq for PathOffset
impl StructuralPartialEq for PathOffset
Auto Trait Implementations§
impl Freeze for PathOffset
impl RefUnwindSafe for PathOffset
impl Send for PathOffset
impl Sync for PathOffset
impl Unpin for PathOffset
impl UnsafeUnpin for PathOffset
impl UnwindSafe for PathOffset
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