pub struct LinoLink {
pub id: Option<String>,
pub values: Option<Vec<LinoLink>>,
}Expand description
LinoLink represents a parsed link from LiNo notation
Corresponds to Link.Foundation.Links.Notation.Link
Fields§
§id: Option<String>The ID/name of this link (can be a number, variable, or name)
values: Option<Vec<LinoLink>>Child values (for composite links)
Implementations§
Source§impl LinoLink
impl LinoLink
Sourcepub fn with_values(id: Option<String>, values: Vec<LinoLink>) -> Self
pub fn with_values(id: Option<String>, values: Vec<LinoLink>) -> Self
Creates a new LinoLink with an ID and values
Sourcepub fn has_values(&self) -> bool
pub fn has_values(&self) -> bool
Returns true if this link has child values
Sourcepub fn values_count(&self) -> usize
pub fn values_count(&self) -> usize
Gets the number of child values
Sourcepub fn is_variable(&self) -> bool
pub fn is_variable(&self) -> bool
Returns true if the ID is a variable (starts with $)
Sourcepub fn is_wildcard(&self) -> bool
pub fn is_wildcard(&self) -> bool
Returns true if the ID is a wildcard (*)
Sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Returns true if the ID is numeric
Trait Implementations§
impl Eq for LinoLink
impl StructuralPartialEq for LinoLink
Auto Trait Implementations§
impl Freeze for LinoLink
impl RefUnwindSafe for LinoLink
impl Send for LinoLink
impl Sync for LinoLink
impl Unpin for LinoLink
impl UnsafeUnpin for LinoLink
impl UnwindSafe for LinoLink
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