Struct rosu_pp::model::hit_object::PathType
source · pub struct PathType {
pub kind: SplineType,
pub degree: Option<NonZero<i32>>,
}
Expand description
The type of a SliderPath
’s segment.
Fields§
§kind: SplineType
§degree: Option<NonZero<i32>>
Implementations§
source§impl PathType
impl PathType
pub const CATMULL: PathType = _
pub const BEZIER: PathType = _
pub const LINEAR: PathType = _
pub const PERFECT_CURVE: PathType = _
sourcepub const fn new(kind: SplineType) -> PathType
pub const fn new(kind: SplineType) -> PathType
Initialize a new PathType
without a degree.
sourcepub fn new_from_str(input: &str) -> PathType
pub fn new_from_str(input: &str) -> PathType
Parse a string into a PathType
.
The string should be of the form "B<optional integer>" | "L" | "P"
(without the <>
). Otherwise, a catmull path type is returned.
Trait Implementations§
source§impl PartialEq for PathType
impl PartialEq for PathType
impl Copy for PathType
impl Eq for PathType
impl StructuralPartialEq for PathType
Auto Trait Implementations§
impl Freeze for PathType
impl RefUnwindSafe for PathType
impl Send for PathType
impl Sync for PathType
impl Unpin for PathType
impl UnwindSafe for PathType
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