pub struct LinksConstants<T: LinkType> {
pub index_part: T,
pub source_part: T,
pub target_part: T,
pub null: T,
pub continue: T,
pub break: T,
pub skip: T,
pub any: T,
pub itself: T,
pub error: T,
pub internal_range: RangeInclusive<T>,
pub external_range: Option<RangeInclusive<T>>,
}Fields§
§index_part: T§source_part: T§target_part: T§null: T§continue: T§break: T§skip: T§any: T§itself: T§error: T§internal_range: RangeInclusive<T>§external_range: Option<RangeInclusive<T>>Implementations§
Source§impl<T: LinkType> LinksConstants<T>
impl<T: LinkType> LinksConstants<T>
pub fn full_new( target_part: T, internal: RangeInclusive<T>, external: Option<RangeInclusive<T>>, ) -> Self
pub fn via_external(target_part: T, external: bool) -> Self
pub fn via_ranges( internal: RangeInclusive<T>, external: Option<RangeInclusive<T>>, ) -> Self
pub fn via_only_external(external: bool) -> Self
pub fn external() -> Self
pub fn internal() -> Self
pub fn new() -> Self
pub fn is_internal(&self, address: T) -> bool
pub fn is_external(&self, address: T) -> bool
pub fn is_reference(&self, address: T) -> bool
Trait Implementations§
Source§impl<T: Clone + LinkType> Clone for LinksConstants<T>
impl<T: Clone + LinkType> Clone for LinksConstants<T>
Source§fn clone(&self) -> LinksConstants<T>
fn clone(&self) -> LinksConstants<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: LinkType> Default for LinksConstants<T>
impl<T: LinkType> Default for LinksConstants<T>
impl<T: Eq + LinkType> Eq for LinksConstants<T>
impl<T: LinkType> StructuralPartialEq for LinksConstants<T>
Auto Trait Implementations§
impl<T> Freeze for LinksConstants<T>where
T: Freeze,
impl<T> RefUnwindSafe for LinksConstants<T>where
T: RefUnwindSafe,
impl<T> Send for LinksConstants<T>
impl<T> Sync for LinksConstants<T>
impl<T> Unpin for LinksConstants<T>
impl<T> UnsafeUnpin for LinksConstants<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LinksConstants<T>where
T: UnwindSafe,
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