pub struct DefType {
pub ident: DefIdent,
pub range: DefRange,
}Fields§
§ident: DefIdent§range: DefRangeImplementations§
Source§impl DefType
impl DefType
pub fn new(str: &str, range: DefRange) -> Self
pub fn ident_str(&self) -> &str
Sourcepub fn maybe_unsized(&self) -> bool
pub fn maybe_unsized(&self) -> bool
Returns true if this type intrinsically carries its own 'a lifetime (i.e. the hand-written or generated type
is declared as Foo<'a>). This is independent of the Value<'a, T> substitution wrapper, which always supplies
'a separately. Almost every value type is unsized; the sized minority (numeric primitives like Integer and
Length, keyword enums, Url, ident newtypes) is enumerated in sized_types, so a type is unsized unless it
appears there.
Trait Implementations§
impl StructuralPartialEq for DefType
Auto Trait Implementations§
impl Freeze for DefType
impl RefUnwindSafe for DefType
impl Send for DefType
impl Sync for DefType
impl Unpin for DefType
impl UnsafeUnpin for DefType
impl UnwindSafe for DefType
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