pub struct CollisionAdvancedSource {
pub enabled: bool,
pub group: String,
pub collides_with: Vec<String>,
pub ignore: Vec<String>,
pub priority: i32,
pub movable: bool,
pub bounds: CollisionBounds,
pub policy: String,
}Expand description
Advanced geometry-first collision declaration.
Fields§
§enabled: boolWhether this node participates.
group: StringCollision group.
collides_with: Vec<String>Groups this node collides with; empty means all.
ignore: Vec<String>Element IDs ignored by this node.
priority: i32Higher values win movement conflicts.
movable: boolWhether the resolver may move this node.
bounds: CollisionBoundsResolved box used by the spatial index.
policy: StringPolicy name: push/error/overlay/next_page/shrink.
Trait Implementations§
Source§impl Clone for CollisionAdvancedSource
impl Clone for CollisionAdvancedSource
Source§fn clone(&self) -> CollisionAdvancedSource
fn clone(&self) -> CollisionAdvancedSource
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 CollisionAdvancedSource
impl Debug for CollisionAdvancedSource
Source§impl Default for CollisionAdvancedSource
impl Default for CollisionAdvancedSource
Source§impl<'de> Deserialize<'de> for CollisionAdvancedSourcewhere
CollisionAdvancedSource: Default,
impl<'de> Deserialize<'de> for CollisionAdvancedSourcewhere
CollisionAdvancedSource: Default,
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
Source§impl PartialEq for CollisionAdvancedSource
impl PartialEq for CollisionAdvancedSource
Source§impl Serialize for CollisionAdvancedSource
impl Serialize for CollisionAdvancedSource
impl StructuralPartialEq for CollisionAdvancedSource
Auto Trait Implementations§
impl Freeze for CollisionAdvancedSource
impl RefUnwindSafe for CollisionAdvancedSource
impl Send for CollisionAdvancedSource
impl Sync for CollisionAdvancedSource
impl Unpin for CollisionAdvancedSource
impl UnsafeUnpin for CollisionAdvancedSource
impl UnwindSafe for CollisionAdvancedSource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.