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: Identifier
The 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§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.