pub struct PlacementOptions {
pub max_distance: isize,
pub step: isize,
pub random: bool,
pub addon: bool,
}
Expand description
Additional options for find_placement
.
Fields§
§max_distance: isize
Maximum distance of checked points from given position. [Default: 15
]
step: isize
Step between each checked position. [Default: 2
]
random: bool
Return random found point if true
, or closest to given position. [Default: false
]
addon: bool
Filter positions where addon can fit. [Default: false
]
Trait Implementations§
Source§impl Clone for PlacementOptions
impl Clone for PlacementOptions
Source§fn clone(&self) -> PlacementOptions
fn clone(&self) -> PlacementOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PlacementOptions
impl Default for PlacementOptions
impl Copy for PlacementOptions
Auto Trait Implementations§
impl Freeze for PlacementOptions
impl RefUnwindSafe for PlacementOptions
impl Send for PlacementOptions
impl Sync for PlacementOptions
impl Unpin for PlacementOptions
impl UnwindSafe for PlacementOptions
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