Skip to main content

Roll

Struct Roll 

Source
pub struct Roll {
    pub core: f64,
    pub full: f64,
    pub thickness: f64,
    pub density_width: f64,
    pub core_inertia: f64,
}
Expand description

A roll of web: core, full radius, the web’s thickness, density times width and the inertia of core and shaft.

Fields§

§core: f64§full: f64§thickness: f64§density_width: f64

rho w, kg/m^2 (per metre of radius and of length: the web’s mass per area of its cross-section is rho).

§core_inertia: f64

Implementations§

Source§

impl Roll

Source

pub fn radius(&self, wound: f64) -> f64

The radius with wound metres of web on the core: r^2 = r_c^2 + h s / pi.

Source

pub fn capacity(&self) -> f64

The web a full roll holds, m: pi (r_f^2 - r_c^2) / h.

Source

pub fn web_mass(&self, r: f64) -> f64

The web’s mass on the roll at radius r, kg: rho w pi (r^2 - r_c^2).

Source

pub fn inertia(&self, r: f64) -> f64

The roll’s inertia about its axis at radius r: the web, 1/2 rho w pi (r^4 - r_c^4), plus core and shaft.

Trait Implementations§

Source§

impl Clone for Roll

Source§

fn clone(&self) -> Roll

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 Copy for Roll

Source§

impl Debug for Roll

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Roll

Source§

fn eq(&self, other: &Roll) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Roll

Auto Trait Implementations§

§

impl Freeze for Roll

§

impl RefUnwindSafe for Roll

§

impl Send for Roll

§

impl Sync for Roll

§

impl Unpin for Roll

§

impl UnsafeUnpin for Roll

§

impl UnwindSafe for Roll

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<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> 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.