pub struct SubResource {
pub res_type: SmolStr,
pub span: TextRange,
}Expand description
A [sub_resource …] declaration (type only — the value body is skipped).
Fields§
§res_type: SmolStrtype="…".
span: TextRangeByte span of the header line.
Trait Implementations§
Source§impl Clone for SubResource
impl Clone for SubResource
Source§fn clone(&self) -> SubResource
fn clone(&self) -> SubResource
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 SubResource
impl Debug for SubResource
impl Eq for SubResource
Source§impl PartialEq for SubResource
impl PartialEq for SubResource
Source§fn eq(&self, other: &SubResource) -> bool
fn eq(&self, other: &SubResource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubResource
Auto Trait Implementations§
impl Freeze for SubResource
impl RefUnwindSafe for SubResource
impl Send for SubResource
impl Sync for SubResource
impl Unpin for SubResource
impl UnsafeUnpin for SubResource
impl UnwindSafe for SubResource
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