Struct rusty_spine::Attachment
source · pub struct Attachment { /* private fields */ }
Expand description
Slot attachments.
Attachments are reference counted and can be stored and worked with directly, however, some of the underlying data that attachments point to may be cleared. For this reason, attachments should be used with caution, and only used so long as the SkeletonData they came from remains valid, and only attached to the slot they are meant for.
Implementations
sourceimpl Attachment
impl Attachment
pub fn as_region(&self) -> Option<RegionAttachment>
pub fn as_bounding_box(&self) -> Option<BoundingBoxAttachment>
pub fn as_mesh(&self) -> Option<MeshAttachment>
pub fn as_point(&self) -> Option<PointAttachment>
pub fn as_clipping(&self) -> Option<ClippingAttachment>
pub fn name(&self) -> &str
pub fn attachment_type(&self) -> AttachmentType
pub fn c_ptr(&self) -> *mut spAttachment
Trait Implementations
sourceimpl Clone for Attachment
impl Clone for Attachment
sourceimpl Debug for Attachment
impl Debug for Attachment
sourceimpl Drop for Attachment
impl Drop for Attachment
sourceimpl NewFromPtr<spAttachment> for Attachment
impl NewFromPtr<spAttachment> for Attachment
unsafe fn new_from_ptr(c_attachment: *const spAttachment) -> Self
Auto Trait Implementations
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more