pub struct ExtResource {
pub res_type: SmolStr,
pub path: Option<SmolStr>,
pub uid: Option<SmolStr>,
pub span: TextRange,
}Expand description
An [ext_resource …] declaration.
Fields§
§res_type: SmolStrtype="Script" | "PackedScene" | "Texture2D" | ….
path: Option<SmolStr>path="res://…", if present (prefer this over uid in the slice).
uid: Option<SmolStr>uid="uid://…", if present (resolved via the project UID map in M1).
span: TextRangeByte span of the [ext_resource …] header line.
Trait Implementations§
Source§impl Clone for ExtResource
impl Clone for ExtResource
Source§fn clone(&self) -> ExtResource
fn clone(&self) -> ExtResource
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 ExtResource
impl Debug for ExtResource
impl Eq for ExtResource
Source§impl PartialEq for ExtResource
impl PartialEq for ExtResource
Source§fn eq(&self, other: &ExtResource) -> bool
fn eq(&self, other: &ExtResource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtResource
Auto Trait Implementations§
impl Freeze for ExtResource
impl RefUnwindSafe for ExtResource
impl Send for ExtResource
impl Sync for ExtResource
impl Unpin for ExtResource
impl UnsafeUnpin for ExtResource
impl UnwindSafe for ExtResource
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