pub struct FuncName {
pub namespace: Vec<Identifier>,
pub name: Identifier,
}Expand description
Type representing a (potentially namespaced) function name.
Fields§
§namespace: Vec<Identifier>The function’s namespace components, if any.
name: IdentifierThe function name.
Implementations§
source§impl FuncName
impl FuncName
sourcepub fn new(name: impl Into<Identifier>) -> FuncName
pub fn new(name: impl Into<Identifier>) -> FuncName
Create a new FuncName from a name identifier.
sourcepub fn with_namespace<I>(self, namespace: I) -> FuncName
pub fn with_namespace<I>(self, namespace: I) -> FuncName
Adds a namespace to the function name.
sourcepub fn is_namespaced(&self) -> bool
pub fn is_namespaced(&self) -> bool
Returns true if the function name is namespaced.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FuncName
impl<'de> Deserialize<'de> for FuncName
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Format for FuncName
impl Format for FuncName
source§fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
Formats a HCL structure using a formatter and writes the result to the provided writer. Read more
source§impl<'de> IntoDeserializer<'de, Error> for FuncName
impl<'de> IntoDeserializer<'de, Error> for FuncName
source§type Deserializer = MapAccessDeserializer<FuncNameAccess>
type Deserializer = MapAccessDeserializer<FuncNameAccess>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
impl Eq for FuncName
impl StructuralPartialEq for FuncName
Auto Trait Implementations§
impl Freeze for FuncName
impl RefUnwindSafe for FuncName
impl Send for FuncName
impl Sync for FuncName
impl Unpin for FuncName
impl UnwindSafe for FuncName
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.