Struct fuels_code_gen::utils::TypePath
source · pub struct TypePath { /* private fields */ }
Implementations§
source§impl TypePath
impl TypePath
pub fn new<T: ToString>(path: T) -> Result<Self>
pub fn relative_path_from(&self, path: &TypePath) -> TypePath
pub fn parent(&self) -> TypePath
pub fn take_parts(self) -> Vec<Ident>
pub fn has_multiple_parts(&self) -> bool
pub fn prepend(self, another: TypePath) -> Self
pub fn append(self, another: TypePath) -> Self
pub fn ident(&self) -> Option<&Ident>
Trait Implementations§
source§impl Ord for TypePath
impl Ord for TypePath
source§impl PartialEq<TypePath> for TypePath
impl PartialEq<TypePath> for TypePath
source§impl PartialOrd<TypePath> for TypePath
impl PartialOrd<TypePath> for TypePath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToTokens for TypePath
impl ToTokens for TypePath
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere Self: Sized,
impl Eq for TypePath
impl StructuralEq for TypePath
impl StructuralPartialEq for TypePath
Auto Trait Implementations§
impl RefUnwindSafe for TypePath
impl !Send for TypePath
impl !Sync for TypePath
impl Unpin for TypePath
impl UnwindSafe for TypePath
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
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.