pub struct Content(/* private fields */);
Expand description
A reference to a Roblox asset.
This is exposed in Roblox as the Content
type. For the legacy type equivalent
to a string, see ContentId
.
Implementations§
Source§impl Content
impl Content
Sourcepub fn from_referent(referent: Ref) -> Self
pub fn from_referent(referent: Ref) -> Self
Constructs a Content
from the provided referent.
Sourcepub fn value(&self) -> &ContentType
pub fn value(&self) -> &ContentType
Returns the underlying value of the Content
.
Sourcepub fn value_mut(&mut self) -> &mut ContentType
pub fn value_mut(&mut self) -> &mut ContentType
Returns a mutable reference to the underlying value of the Content
.
Trait Implementations§
impl Eq for Content
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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