pub struct StudyProfile {
pub bars: Range<usize>,
pub profile: Arc<VolumeProfile>,
pub config: VolumeProfileConfig,
pub color: [u8; 4],
pub right_aligned: bool,
}Expand description
One price-row profile placed over a half-open span of chart bars.
Fields§
§bars: Range<usize>Full source span for bar profiles, including offscreen bars in fixed periods, or the visible span for an options overlay.
profile: Arc<VolumeProfile>Immutable row volumes and price boundaries.
config: VolumeProfileConfigRow layout, value area and display settings.
color: [u8; 4]Colour of total volume and value-area lines.
right_aligned: boolDraw at the right of the viewport instead of beside the first source bar.
Trait Implementations§
Source§impl Clone for StudyProfile
impl Clone for StudyProfile
Source§fn clone(&self) -> StudyProfile
fn clone(&self) -> StudyProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StudyProfile
impl RefUnwindSafe for StudyProfile
impl Send for StudyProfile
impl Sync for StudyProfile
impl Unpin for StudyProfile
impl UnsafeUnpin for StudyProfile
impl UnwindSafe for StudyProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more