Struct platform_data::LinksConstants
source · [−]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: Tsource_part: Ttarget_part: Tnull: Tcontinue: Tbreak: Tskip: Tany: Titself: Terror: Tinternal_range: RangeInclusive<T>external_range: Option<RangeInclusive<T>>Implementations
sourceimpl<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
sourceimpl<T: Clone + LinkType> Clone for LinksConstants<T>
impl<T: Clone + LinkType> Clone for LinksConstants<T>
sourcefn clone(&self) -> LinksConstants<T>
fn clone(&self) -> LinksConstants<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Debug + LinkType> Debug for LinksConstants<T>
impl<T: Debug + LinkType> Debug for LinksConstants<T>
sourceimpl<T: LinkType> Default for LinksConstants<T>
impl<T: LinkType> Default for LinksConstants<T>
sourceimpl<T: PartialEq + LinkType> PartialEq<LinksConstants<T>> for LinksConstants<T>
impl<T: PartialEq + LinkType> PartialEq<LinksConstants<T>> for LinksConstants<T>
sourcefn eq(&self, other: &LinksConstants<T>) -> bool
fn eq(&self, other: &LinksConstants<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LinksConstants<T>) -> bool
fn ne(&self, other: &LinksConstants<T>) -> bool
This method tests for !=.
impl<T: Eq + LinkType> Eq for LinksConstants<T>
impl<T: LinkType> StructuralEq for LinksConstants<T>
impl<T: LinkType> StructuralPartialEq for LinksConstants<T>
Auto Trait Implementations
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> UnwindSafe for LinksConstants<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more