pub struct RbxInstance { /* private fields */ }
Expand description
Represents an instance that is rooted in an RbxTree
. These are always
returned from an existing RbxTree
with a method like
RbxTree::get_instance
.
RbxInstance
derefs to RbxInstanceProperties
to make accessing properties
easier.
Implementations§
Source§impl RbxInstance
impl RbxInstance
Sourcepub fn get_parent_id(&self) -> Option<RbxId>
pub fn get_parent_id(&self) -> Option<RbxId>
Returns the ID of the parent of this instance, if it has a parent.
Sourcepub fn get_children_ids(&self) -> &[RbxId]
pub fn get_children_ids(&self) -> &[RbxId]
Returns a list of the IDs of the children of this instance.
Trait Implementations§
Source§impl Clone for RbxInstance
impl Clone for RbxInstance
Source§impl Debug for RbxInstance
impl Debug for RbxInstance
Source§impl Deref for RbxInstance
impl Deref for RbxInstance
Source§impl DerefMut for RbxInstance
impl DerefMut for RbxInstance
Source§impl<'de> Deserialize<'de> for RbxInstance
impl<'de> Deserialize<'de> for RbxInstance
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 RbxInstance
impl PartialEq for RbxInstance
Source§impl Serialize for RbxInstance
impl Serialize for RbxInstance
impl StructuralPartialEq for RbxInstance
Auto Trait Implementations§
impl Freeze for RbxInstance
impl RefUnwindSafe for RbxInstance
impl Send for RbxInstance
impl Sync for RbxInstance
impl Unpin for RbxInstance
impl UnwindSafe for RbxInstance
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