Skip to main content

TangentElement

Struct TangentElement 

Source
pub struct TangentElement<P: Point, V: Tensor, Tower, const N: usize = 1>(pub P, pub JetVector<๐’ž, V, N>, _);
Expand description

A point together with a jet-valued tangent coordinate and its tower tag.

Tower distinguishes iterated tangent constructions that have identical runtime representations. Use TangentElement::new rather than spelling the marker explicitly.

Tuple Fieldsยง

ยง0: Pยง1: JetVector<๐’ž, V, N>

Implementationsยง

Sourceยง

impl<P: Point, V: Tensor, Tower, const N: usize> TangentElement<P, V, Tower, N>

Source

pub fn new(p: P, v: JetVector<๐’ž, V, N>) -> Self

Constructs a tangent element from its base point and local jet.

Source

pub fn base_point(&self) -> P

Returns a clone of the base point.

Source

pub fn jet(&self) -> &JetVector<๐’ž, V, N>

Borrows the jet-valued tangent coordinate.

Trait Implementationsยง

Sourceยง

impl<P: Clone + Point, V: Clone + Tensor, Tower: Clone, const N: usize> Clone for TangentElement<P, V, Tower, N>

Sourceยง

fn clone(&self) -> TangentElement<P, V, Tower, N>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl<P: Debug + Point, V: Debug + Tensor, Tower: Debug, const N: usize> Debug for TangentElement<P, V, Tower, N>

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementationsยง

ยง

impl<P, V, Tower, const N: usize> Freeze for TangentElement<P, V, Tower, N>
where P: Freeze, TensorOver<V, Jet<๐’ž, <V as Tensor>::F, N>>: Freeze, PhantomData<Tower>: Freeze,

ยง

impl<P, V, Tower, const N: usize> RefUnwindSafe for TangentElement<P, V, Tower, N>
where P: RefUnwindSafe, TensorOver<V, Jet<๐’ž, <V as Tensor>::F, N>>: RefUnwindSafe, PhantomData<Tower>: RefUnwindSafe,

ยง

impl<P, V, Tower, const N: usize> Send for TangentElement<P, V, Tower, N>
where P: Send, TensorOver<V, Jet<๐’ž, <V as Tensor>::F, N>>: Send, PhantomData<Tower>: Send,

ยง

impl<P, V, Tower, const N: usize> Sync for TangentElement<P, V, Tower, N>
where P: Sync, TensorOver<V, Jet<๐’ž, <V as Tensor>::F, N>>: Sync, PhantomData<Tower>: Sync,

ยง

impl<P, V, Tower, const N: usize> Unpin for TangentElement<P, V, Tower, N>
where P: Unpin, TensorOver<V, Jet<๐’ž, <V as Tensor>::F, N>>: Unpin, PhantomData<Tower>: Unpin,

ยง

impl<P, V, Tower, const N: usize> UnsafeUnpin for TangentElement<P, V, Tower, N>
where P: UnsafeUnpin, TensorOver<V, Jet<๐’ž, <V as Tensor>::F, N>>: UnsafeUnpin, PhantomData<Tower>: UnsafeUnpin,

ยง

impl<P, V, Tower, const N: usize> UnwindSafe for TangentElement<P, V, Tower, N>
where P: UnwindSafe, TensorOver<V, Jet<๐’ž, <V as Tensor>::F, N>>: UnwindSafe, PhantomData<Tower>: UnwindSafe,

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<๐’ž, X> Equivalent<๐’ž, X> for X
where ๐’ž: Cat,

Sourceยง

fn project(self) -> X

Sourceยง

fn lift(x: X) -> X

Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> OptionallyOption<T> for T

Sourceยง

fn into_option(self) -> Option<T>

Converts either permitted representation into Option<T>. Read more
Sourceยง

impl<T> Point for T
where T: Clone + Debug,

Sourceยง

impl<T> Reassociate for T

Sourceยง

fn reassociate<P>( self, ) -> <<Self as ReassociateKernel<P>>::Reassociated as NormalizeWith<Undecorated>>::Normalized
where Self: ReassociateKernel<P>, <Self as ReassociateKernel<P>>::Reassociated: NormalizeWith<Undecorated>,

Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.